mirror of
https://github.com/nvim-treesitter/nvim-treesitter-context
synced 2024-09-16 14:14:03 +02:00
feat(go): add context for 'default' switch case
This commit is contained in:
parent
c03f8aab1e
commit
f3ec0d8a1b
2 changed files with 13 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
|||
(select_statement)
|
||||
(expression_switch_statement)
|
||||
(expression_case)
|
||||
(default_case)
|
||||
] @context)
|
||||
|
||||
(function_declaration
|
||||
|
|
12
test/test.go
12
test/test.go
|
@ -84,6 +84,18 @@ func foo(a int,
|
|||
|
||||
|
||||
|
||||
default:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
fmt.Println("Not valid")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue