tree-sitter-bp/queries/indents.scm
Bruno BELANYI 900960d7d9
Some checks failed
ci/woodpecker/push/check Pipeline failed
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-07 12:52:27 +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