mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 19:00:02 -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)
|
(literal_value)
|
||||||
(expression_case)
|
(expression_case)
|
||||||
(communication_case)
|
(communication_case)
|
||||||
|
(type_case)
|
||||||
(default_case)
|
(default_case)
|
||||||
(block)
|
(block)
|
||||||
(call_expression)
|
(call_expression)
|
||||||
|
|
|
||||||
|
|
@ -11,4 +11,10 @@ func test(ch byte) {
|
||||||
case 'l':
|
case 'l':
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var i interface{}
|
||||||
|
switch i.(type) {
|
||||||
|
case int:
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue