indents(go): perform some changes as go fmt dictates

This commit is contained in:
Stephan Seitz 2022-02-04 23:35:30 +01:00
parent 0d1c1efff5
commit 9f25d66f7d
2 changed files with 9 additions and 4 deletions

View file

@ -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

View file

@ -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)
}