Add indentation queries

This commit is contained in:
Bruno BELANYI 2024-04-11 19:42:25 +01:00
parent 9ee889d7ad
commit f8f328fa17

27
queries/indents.scm Normal file
View file

@ -0,0 +1,27 @@
; Expressions {{{
(list_expression) @indent.begin
(list_expression
"]" @indent.branch)
(map_expression) @indent.begin
(map_expression
"}" @indent.branch)
(select_expression) @indent.begin
(select_expression
")" @indent.branch)
(select_cases) @indent.begin
(select_cases
"}" @indent.branch)
; }}}
; Declarations {{{
(module) @indent.begin
(module
")" @indent.branch)
(module
"}" @indent.branch)
; }}}
; vim: sw=2 foldmethod=marker