Skip to content

Commit

Permalink
feat(go): add context for 'default' switch case
Browse files Browse the repository at this point in the history
  • Loading branch information
folliehiyuki authored and lewis6991 committed Nov 18, 2023
1 parent c03f8aa commit f3ec0d8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions queries/go/context.scm
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
(select_statement)
(expression_switch_statement)
(expression_case)
(default_case)
] @context)

(function_declaration
Expand Down
12 changes: 12 additions & 0 deletions test/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,18 @@ func foo(a int,



default:










fmt.Println("Not valid")
}
}

Expand Down

0 comments on commit f3ec0d8

Please sign in to comment.