helix/runtime/queries/odin/indents.scm
Chris 81d4cbc66e
Update Odin tree sitter grammar (#10698)
* Replace Odin grammar source

* Update Odin highlights

* Update Odin indents

* Update Odin injections
2024-05-07 18:14:55 +02:00

24 lines
430 B
Scheme

[
(block)
(enum_declaration)
(union_declaration)
(struct_declaration)
(struct)
(parameters)
(tuple_type)
(call_expression)
(switch_case)
] @indent
[
")"
"]"
] @outdent
; Have to do all closing brackets separately because the one for switch statements shouldn't end.
(block "}" @outdent)
(enum_declaration "}" @outdent)
(union_declaration "}" @outdent)
(struct_declaration "}" @outdent)
(struct "}" @outdent)