diff --git a/queries/go/context.scm b/queries/go/context.scm index 0e067bf5..7bbd82c2 100644 --- a/queries/go/context.scm +++ b/queries/go/context.scm @@ -6,6 +6,7 @@ (select_statement) (expression_switch_statement) (expression_case) + (default_case) ] @context) (function_declaration diff --git a/test/test.go b/test/test.go index 5e69b2f0..6ee64646 100644 --- a/test/test.go +++ b/test/test.go @@ -84,6 +84,18 @@ func foo(a int, + default: + + + + + + + + + + + fmt.Println("Not valid") } }