mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 04:10:06 -04:00
feat: add Odin
This commit is contained in:
parent
a67a4ab642
commit
40d373adcd
8 changed files with 379 additions and 0 deletions
27
queries/odin/indents.scm
Normal file
27
queries/odin/indents.scm
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue