feat: add Odin

This commit is contained in:
Amaan Qureshi 2023-05-11 03:56:12 -04:00
parent a67a4ab642
commit 40d373adcd
8 changed files with 379 additions and 0 deletions

27
queries/odin/indents.scm Normal file
View file

@ -0,0 +1,27 @@
[
(block)
(procedure_declaration)
(overloaded_procedure_declaration)
(enum_declaration)
(union_declaration)
(if_statement)
(else_if_clause)
(else_clause)
(when_statement)
(else_when_clause)
(for_statement)
(switch_case)
] @indent.begin
[
"}"
")"
"]"
] @indent.branch @indent.end
[
(comment)
(block_comment)
(string)
(ERROR)
] @indent.auto