aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--queries/go/indents.scm8
-rw-r--r--tests/indent/go/issue-2369.go5
2 files changed, 9 insertions, 4 deletions
diff --git a/queries/go/indents.scm b/queries/go/indents.scm
index 4812d28b1..f274ffb11 100644
--- a/queries/go/indents.scm
+++ b/queries/go/indents.scm
@@ -9,15 +9,15 @@
(expression_case)
(default_case)
(block)
+ (call_expression)
+ (parameter_list)
] @indent
[
"case"
- ")"
"}"
] @branch
-(comment) @ignore
+(parameter_list ")" @branch)
-([(parameter_list)] @aligned_indent
- (#set! "delimiter" "()"))
+(comment) @ignore
diff --git a/tests/indent/go/issue-2369.go b/tests/indent/go/issue-2369.go
index a4d29a307..f512814e0 100644
--- a/tests/indent/go/issue-2369.go
+++ b/tests/indent/go/issue-2369.go
@@ -11,4 +11,9 @@ func badIndent(
param string, // this is the difference
) {
fmt.Println("typing o here triggers bad indent")
+ foo(bar,
+ baz,
+ call,
+ stop,
+ please)
}