tree-sitter-tiger/queries/indents.scm
Bruno BELANYI bca103a393 Fix indent queries
You need to add '@indent' to the *parent* node, which whill indent the
children. For some reason I understood it as marking the node that
should be indented when I wrote these.

These were tested manually in Neovim, I need to add a way to test them
correctly though.
2022-06-12 20:38:51 +02:00

24 lines
318 B
Scheme

; Control flow {{{
(if_expression) @indent
"then" @branch
"else" @branch
(while_expression) @indent
"do" @branch
(for_expression) @indent
"to" @branch
; }}}
; Class {{{
(class_declaration) @indent
(class_type) @indent
; }}}
; Misc{{{
(comment) @ignore
(string_literal) @ignore
; }}}
; vim: sw=2 foldmethod=marker