mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 04:10:06 -04:00
feat(t32): add indent rules (#4782)
This commit is contained in:
parent
102f1b2f55
commit
16cce8df58
11 changed files with 291 additions and 5 deletions
49
tests/indent/t32/if_block.cmm
Normal file
49
tests/indent/t32/if_block.cmm
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
IF &a
|
||||
STOP
|
||||
|
||||
IF (TRUE())
|
||||
(
|
||||
BREAK
|
||||
)
|
||||
|
||||
IF (&b+CouNT())
|
||||
(
|
||||
continue
|
||||
)
|
||||
|
||||
IF FOUND()
|
||||
STOP
|
||||
ELSE
|
||||
CONTinue
|
||||
|
||||
IF &c
|
||||
CONTinue
|
||||
ELSE IF FALSE()
|
||||
Break
|
||||
ELSE
|
||||
stop
|
||||
|
||||
IF &d
|
||||
(
|
||||
STOP
|
||||
)
|
||||
ELSE IF &e
|
||||
; comment A
|
||||
(
|
||||
CONTINUE
|
||||
)
|
||||
ELSE
|
||||
; comment B
|
||||
(
|
||||
BREAK
|
||||
)
|
||||
|
||||
IF &f
|
||||
IF &g
|
||||
stop
|
||||
ELSE
|
||||
IF &h
|
||||
(
|
||||
continue
|
||||
)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue