mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 12:06:55 -04:00
fix(go): Indent on type switch case properly
This commit is contained in:
parent
190561df89
commit
28f84d69e3
2 changed files with 7 additions and 0 deletions
|
|
@ -7,6 +7,7 @@
|
|||
(literal_value)
|
||||
(expression_case)
|
||||
(communication_case)
|
||||
(type_case)
|
||||
(default_case)
|
||||
(block)
|
||||
(call_expression)
|
||||
|
|
|
|||
|
|
@ -11,4 +11,10 @@ func test(ch byte) {
|
|||
case 'l':
|
||||
return
|
||||
}
|
||||
|
||||
var i interface{}
|
||||
switch i.(type) {
|
||||
case int:
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue