diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2022-08-05 21:04:21 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-08-05 12:32:20 -0700 |
| commit | 27424a2040efac021d6d86e14588c3998af99ccd (patch) | |
| tree | a570fc86cd8ae9c3d025f23780fcea04e965cd66 /queries | |
| parent | 3832fde3ee0a022924f8b1ace1b91f7c0b216b60 (diff) | |
indents(go): improve `@branch` rules
- Don't branch at `case`
- Let `import_spec_list`/`var_declaration` behave like
`const_declaration`
Fixes #2166
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/go/indents.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/queries/go/indents.scm b/queries/go/indents.scm index a6fbf082..d88329c9 100644 --- a/queries/go/indents.scm +++ b/queries/go/indents.scm @@ -14,11 +14,12 @@ ] @indent [ - "case" "}" ] @branch (const_declaration ")" @branch) +(import_spec_list ")" @branch) +(var_declaration ")" @branch) [ "}" |
