mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix(go): apply indents in a communication case in a select statement
This commit is contained in:
parent
37e7af1619
commit
a3213e3dd7
2 changed files with 17 additions and 0 deletions
16
tests/indent/go/select.go
Normal file
16
tests/indent/go/select.go
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
// issue #4248
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func test(ch byte) {
|
||||
ctx := context.TODO()
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
fmt.Println("indentation")
|
||||
default:
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue