mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -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
45
runtime/queries/hare/indents.scm
Normal file
45
runtime/queries/hare/indents.scm
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
[
|
||||
(enum_type)
|
||||
(struct_type)
|
||||
(tuple_type)
|
||||
(union_type)
|
||||
(block)
|
||||
(for_statement)
|
||||
(call_expression)
|
||||
(case)
|
||||
(array_literal)
|
||||
(struct_literal)
|
||||
(tuple_literal)
|
||||
] @indent.begin
|
||||
|
||||
(if_statement
|
||||
("("
|
||||
condition: (_)
|
||||
")") @indent.begin)
|
||||
|
||||
[
|
||||
"}"
|
||||
"]"
|
||||
")"
|
||||
] @indent.end
|
||||
|
||||
[
|
||||
"{"
|
||||
"}"
|
||||
] @indent.branch
|
||||
|
||||
[
|
||||
"["
|
||||
"]"
|
||||
] @indent.branch
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
] @indent.branch
|
||||
|
||||
[
|
||||
(ERROR)
|
||||
(comment)
|
||||
(concatenated_string)
|
||||
] @indent.auto
|
||||
Loading…
Add table
Add a link
Reference in a new issue