1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 17:40:05 +08:00
SpaceVim/bundle/nvim-treesitter/queries/t32/indents.scm

35 lines
532 B
Scheme
Vendored

; 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.auto
(repeat_block
(command_expression)) @indent.auto
(comment) @indent.auto