aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgavincrawford2023-02-08 07:17:34 +0000
committerGitHub2023-02-08 07:17:34 +0000
commit00ecc556a8d3f7efe115f3d826c916ffacf6ab2e (patch)
tree17a519dd382ee3f733bcbf23cd131b408737390f
parent05c52072653f4c276750e3c651b9c4e030e912d2 (diff)
Fix Go select indenting (#5713)
* Fix Go indenting * Fix bracket outdent predicate * Fix brace indenting (again)
-rw-r--r--runtime/queries/go/indents.scm5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/queries/go/indents.scm b/runtime/queries/go/indents.scm
index f72ec9e8..e439a905 100644
--- a/runtime/queries/go/indents.scm
+++ b/runtime/queries/go/indents.scm
@@ -20,8 +20,9 @@
] @indent
[
- "case"
- "}"
"]"
")"
] @outdent
+
+((_ "}" @outdent) @outer (#not-kind-eq? @outer "select_statement"))
+(communication_case) @extend