nvim-treesitter/tests/indent/go/switch.go
Stephan Seitz 27424a2040 indents(go): improve @branch rules
- Don't branch at `case`
- Let `import_spec_list`/`var_declaration` behave like
  `const_declaration`

Fixes #2166
2022-08-05 12:32:20 -07:00

14 lines
128 B
Go

// issue #2166
package main
import (
"fmt"
)
func test(ch byte) {
fmt.Println("hey!")
switch ch {
case 'l':
return
}
}