tree-sitter-bp/queries/indents.scm
Bruno BELANYI c5031e2c16 Add indentation queries for multi-value 'select'
Unfortunately, the indentation feature is still a work in progress, so
we have some expected failures in our tests...
2024-05-13 15:44:18 +00:00

37 lines
589 B
Scheme

; 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_value) @indent.begin
(select_value
")" @indent.branch)
(select_pattern
"(" @indent.begin)
(select_pattern
")" @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