summaryrefslogtreecommitdiff
path: root/queries
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2022-08-05 21:04:21 +0200
committerStephan Seitz <stephan.seitz@fau.de>2022-08-05 12:32:20 -0700
commit27424a2040efac021d6d86e14588c3998af99ccd (patch)
treea570fc86cd8ae9c3d025f23780fcea04e965cd66 /queries
parent3832fde3ee0a022924f8b1ace1b91f7c0b216b60 (diff)
indents(go): improve `@branch` rules
- Don't branch at `case` - Let `import_spec_list`/`var_declaration` behave like `const_declaration` Fixes #2166
Diffstat (limited to 'queries')
-rw-r--r--queries/go/indents.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/queries/go/indents.scm b/queries/go/indents.scm
index a6fbf082..d88329c9 100644
--- a/queries/go/indents.scm
+++ b/queries/go/indents.scm
@@ -14,11 +14,12 @@
] @indent
[
- "case"
"}"
] @branch
(const_declaration ")" @branch)
+(import_spec_list ")" @branch)
+(var_declaration ")" @branch)
[
"}"