feat: add Hare

This commit is contained in:
Amaan Qureshi 2023-03-11 03:02:30 -05:00
parent 98d63d0da4
commit 207a86e4c9
8 changed files with 379 additions and 0 deletions

36
queries/hare/indents.scm Normal file
View 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