diff options
Diffstat (limited to 'queries/hare/indents.scm')
| -rw-r--r-- | queries/hare/indents.scm | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/queries/hare/indents.scm b/queries/hare/indents.scm new file mode 100644 index 000000000..0324f09c6 --- /dev/null +++ b/queries/hare/indents.scm @@ -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 |
