Unnamed repository; edit this file 'description' to name the repository.
Fix Go select indenting (#5713)
* Fix Go indenting * Fix bracket outdent predicate * Fix brace indenting (again)
gavincrawford 2023-02-08
parent 05c5207 · commit 00ecc55
-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