indents(go): no indent at all composite_literal, indent at struct_type

This commit is contained in:
Stephan Seitz 2022-08-10 23:01:57 +02:00
parent ac5456567a
commit d1ce3db8ea
2 changed files with 13 additions and 5 deletions

View file

@ -3,7 +3,6 @@
(const_declaration)
(var_declaration)
(type_declaration)
(composite_literal)
(func_literal)
(literal_value)
(expression_case)
@ -11,6 +10,7 @@
(block)
(call_expression)
(parameter_list)
(struct_type)
] @indent
[

View file

@ -7,8 +7,16 @@ func correct(word string) {
select {
} // <---
arr := []struct {
} // <---
}
func test() {
cases := []struct {
first, second string
} {
{"Hello", "World"},
}
for range cases {
println("random stuff")
}
}