tree-sitter-tiger/queries/indents.scm
Bruno BELANYI 6216812a33
All checks were successful
continuous-integration/drone/push Build is passing
Add variable declarations indents
2022-06-12 20:45:07 +02:00

58 lines
825 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
; }}}
; Groups {{{
(let_expression) @indent
"in" @branch
"end" @branch
(sequence_expression) @indent
")" @branch
; }}}
; Functions and methods {{{
(parameters) @indent
(function_call) @indent
(method_call) @indent
")" @branch
(function_declaration) @indent
(primitive_declaration) @indent
(method_declaration) @indent
; }}}
; Values and expressions {{{
(array_value) @indent
"]" @branch
(array_expression) @indent
"of" @branch
(record_expression) @indent
"}" @branch
(variable_declaration) @indent
; }}}
; Misc{{{
(comment) @ignore
(string_literal) @ignore
; }}}
; vim: sw=2 foldmethod=marker