fix(t32): update indent queries & test

The latest release of the grammar changes the handling of consecutive
line breaks. This breaks the existing test for indents.

This commit updates the indent queries and fixes the associated test.
This commit is contained in:
Christoph Sax 2023-09-13 20:54:04 +02:00 committed by Christian Clason
parent 25c591611e
commit 5ec4217567
3 changed files with 34 additions and 33 deletions

View file

@ -1,28 +1,15 @@
; Subroutines & scoping
(block
")" @indent.branch .) @indent.begin
(if_block) @indent.begin
; Control flow statements
(
(if_block
condition: (_)
. (_) @_then) @indent.begin
(#not-has-type? @_then block)
)
(if_block
(block)) @indent.dedent
(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)
)
(if_block) @indent.dedent)
(while_block
(command_expression)) @indent.auto
@ -30,5 +17,4 @@
(repeat_block
(command_expression)) @indent.auto
(comment) @indent.auto