feat(go): add context for 'default' switch case

This commit is contained in:
Hoang Nguyen 2023-11-18 00:00:00 +07:00 committed by Lewis Russell
parent c03f8aab1e
commit f3ec0d8a1b
2 changed files with 13 additions and 0 deletions

View file

@ -6,6 +6,7 @@
(select_statement)
(expression_switch_statement)
(expression_case)
(default_case)
] @context)
(function_declaration

View file

@ -84,6 +84,18 @@ func foo(a int,
default:
fmt.Println("Not valid")
}
}