mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 01:10:02 -04:00
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:
parent
3832fde3ee
commit
27424a2040
3 changed files with 35 additions and 1 deletions
|
|
@ -14,11 +14,12 @@
|
|||
] @indent
|
||||
|
||||
[
|
||||
"case"
|
||||
"}"
|
||||
] @branch
|
||||
|
||||
(const_declaration ")" @branch)
|
||||
(import_spec_list ")" @branch)
|
||||
(var_declaration ")" @branch)
|
||||
|
||||
[
|
||||
"}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue