mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 20:00:07 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
46
runtime/queries/odin/indents.scm
Normal file
46
runtime/queries/odin/indents.scm
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
[
|
||||
(block)
|
||||
(enum_declaration)
|
||||
(union_declaration)
|
||||
(bit_field_declaration)
|
||||
(struct_declaration)
|
||||
(struct)
|
||||
(parameters)
|
||||
(tuple_type)
|
||||
(call_expression)
|
||||
(switch_case)
|
||||
] @indent.begin
|
||||
|
||||
; hello(
|
||||
((identifier)
|
||||
.
|
||||
(ERROR
|
||||
"(" @indent.begin))
|
||||
|
||||
[
|
||||
")"
|
||||
"]"
|
||||
] @indent.branch @indent.end
|
||||
|
||||
; Have to do all closing brackets separately because the one for switch statements shouldn't end.
|
||||
(block
|
||||
"}" @indent.branch @indent.end)
|
||||
|
||||
(enum_declaration
|
||||
"}" @indent.branch @indent.end)
|
||||
|
||||
(union_declaration
|
||||
"}" @indent.branch @indent.end)
|
||||
|
||||
(struct_declaration
|
||||
"}" @indent.branch @indent.end)
|
||||
|
||||
(struct
|
||||
"}" @indent.branch @indent.end)
|
||||
|
||||
[
|
||||
(comment)
|
||||
(block_comment)
|
||||
(string)
|
||||
(ERROR)
|
||||
] @indent.auto
|
||||
Loading…
Add table
Add a link
Reference in a new issue