diff --git a/queries/indents.scm b/queries/indents.scm new file mode 100644 index 0000000..1dd38f8 --- /dev/null +++ b/queries/indents.scm @@ -0,0 +1,43 @@ +; inherits: jsx + +[ + (for_expression) + (while_expression) + (if_expression) + (let_binding) + (switch_expression) + (expression_statement) + (array) + (call_expression) + (list) + (module_declaration) + (record) + (variant) +] @indent + +(record (record_field) @indent) +(arguments (block) @indent) + +[ + (variant_declaration) + (switch_expression) + (ERROR) +] @auto + +[ + "}" + "]" + ")" +] @indent_end + +[ + "(" + ")" + "{" + "}" + "]" + (else_clause) + (record) +] @branch + +(arguments (block) @branch)