nvim-treesitter/queries/t32/indents.scm
Pham Huy Hoang 9ec2a6bbda
tests: fix failed tests (#4901)
fix failed tests for tiger, t32 and wgsl
2023-06-05 09:52:36 +09:00

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