Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/concerto/indents.scm')
| -rw-r--r-- | runtime/queries/concerto/indents.scm | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/runtime/queries/concerto/indents.scm b/runtime/queries/concerto/indents.scm new file mode 100644 index 00000000..a0b6158e --- /dev/null +++ b/runtime/queries/concerto/indents.scm @@ -0,0 +1,21 @@ +; Concerto Language - Indent Queries (Helix) +; ============================================ +; Helix-specific indentation rules. For use in helix-editor/helix at +; runtime/queries/concerto/indents.scm +; +; Helix uses @indent and @outdent captures, same as tree-sitter convention. +; See: https://docs.helix-editor.com/guides/indent.html + +; Indent inside declaration bodies and decorator argument lists +[ + (class_body) + (enum_body) + (map_body) + (decorator_arguments) +] @indent + +; Outdent at closing braces and parentheses +[ + "}" + ")" +] @outdent |