mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 12:30:01 -04:00
36 lines
552 B
Scheme
36 lines
552 B
Scheme
; Subroutines & scoping
|
|
(block
|
|
")" @indent.branch .) @indent.begin
|
|
|
|
|
|
; Control flow statements
|
|
(
|
|
(if_block
|
|
_*
|
|
condition: (_)
|
|
. (_) @_then) @indent.begin
|
|
(#not-has-type? @_then block)
|
|
)
|
|
|
|
(else_block) @indent.branch
|
|
|
|
(else_block
|
|
(if_block) @indent.dedent) @indent.branch
|
|
|
|
(
|
|
(else_block
|
|
(if_block
|
|
_*
|
|
condition: (_)
|
|
. (_) @_then)) @indent.branch
|
|
(#not-has-type? @_then block)
|
|
)
|
|
|
|
(while_block
|
|
(command_expression)) @indent.begin
|
|
|
|
(repeat_block
|
|
(command_expression)) @indent.begin
|
|
|
|
|
|
(comment) @indent.ignore
|