diff --git a/queries/indents.scm b/queries/indents.scm index 0a6ffc0..6cdb0fb 100644 --- a/queries/indents.scm +++ b/queries/indents.scm @@ -1,20 +1,30 @@ [ (block) - (procedure_declaration) - (overloaded_procedure_declaration) (enum_declaration) (union_declaration) - (when_statement) - (for_statement) + (struct_declaration) + (struct) + (parameters) + (tuple_type) + (call_expression) (switch_case) ] @indent.begin +; hello( +((identifier) . (ERROR "(" @indent.begin)) + [ - "}" ")" "]" ] @indent.branch @indent.end +; Have to do all closing brackets separately because the one for switch statements shouldn't end. +(block "}" @indent.branch @indent.end) +(enum_declaration "}" @indent.branch @indent.end) +(union_declaration "}" @indent.branch @indent.end) +(struct_declaration "}" @indent.branch @indent.end) +(struct "}" @indent.branch @indent.end) + [ (comment) (block_comment)