mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 17:00:09 -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
|
|
@ -6,6 +6,7 @@
|
||||||
(func_literal)
|
(func_literal)
|
||||||
(literal_value)
|
(literal_value)
|
||||||
(expression_case)
|
(expression_case)
|
||||||
|
(communication_case)
|
||||||
(default_case)
|
(default_case)
|
||||||
(block)
|
(block)
|
||||||
(call_expression)
|
(call_expression)
|
||||||
|
|
|
||||||
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