indents(go): improve @branch rules

- Don't branch at `case`
- Let `import_spec_list`/`var_declaration` behave like
  `const_declaration`

Fixes #2166
This commit is contained in:
Stephan Seitz 2022-08-05 21:04:21 +02:00
parent 3832fde3ee
commit 27424a2040
3 changed files with 35 additions and 1 deletions

View file

@ -14,11 +14,12 @@
] @indent
[
"case"
"}"
] @branch
(const_declaration ")" @branch)
(import_spec_list ")" @branch)
(var_declaration ")" @branch)
[
"}"