Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/go/indents.scm')
| -rw-r--r-- | runtime/queries/go/indents.scm | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/runtime/queries/go/indents.scm b/runtime/queries/go/indents.scm deleted file mode 100644 index b2befab0..00000000 --- a/runtime/queries/go/indents.scm +++ /dev/null @@ -1,40 +0,0 @@ -[ - (import_declaration) - (const_declaration) - (type_declaration) - (type_spec) - (func_literal) - (literal_value) - (literal_element) - (keyed_element) - (expression_case) - (default_case) - (type_case) - (communication_case) - (argument_list) - (field_declaration_list) - (block) - (var_declaration) -] @indent - -[ - "]" - ")" -] @outdent - -; Switches and selects aren't indented, only their case bodies are. -; Outdent all closing braces except those closing switches or selects. -( - (_ "}" @outdent) @outer - (#not-kind-eq? @outer "select_statement") - (#not-kind-eq? @outer "type_switch_statement") - (#not-kind-eq? @outer "expression_switch_statement") -) - -; Starting a line after a new case should indent. -[ - (communication_case) - (expression_case) - (default_case) - (type_case) -] @extend |