mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 20:00:07 -04:00
feat: add Hare
This commit is contained in:
parent
98d63d0da4
commit
207a86e4c9
8 changed files with 379 additions and 0 deletions
36
queries/hare/indents.scm
Normal file
36
queries/hare/indents.scm
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
[
|
||||
(enum_type)
|
||||
(struct_type)
|
||||
(tuple_type)
|
||||
(union_type)
|
||||
|
||||
(block)
|
||||
(for_statement)
|
||||
(call_expression)
|
||||
(case)
|
||||
|
||||
(array_literal)
|
||||
(struct_literal)
|
||||
(tuple_literal)
|
||||
] @indent
|
||||
|
||||
(if_statement
|
||||
("(" condition: (_) ")") @indent)
|
||||
|
||||
[
|
||||
"}"
|
||||
"]"
|
||||
")"
|
||||
] @indent_end
|
||||
|
||||
[ "{" "}" ] @branch
|
||||
|
||||
[ "[" "]" ] @branch
|
||||
|
||||
[ "(" ")" ] @branch
|
||||
|
||||
[
|
||||
(ERROR)
|
||||
(comment)
|
||||
(concatenated_string)
|
||||
] @auto
|
||||
Loading…
Add table
Add a link
Reference in a new issue