Skip to content

Commit

Permalink
feat(js/ts/tsx): for in, for of, and switch
Browse files Browse the repository at this point in the history
  • Loading branch information
mnzaki authored and lewis6991 committed Nov 25, 2024
1 parent 8e412eb commit 6b081ea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions queries/javascript/context.scm
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
(else_clause)
(expression_statement)
(for_statement)
(for_in_statement)
(function_declaration)
(generator_function_declaration)
(jsx_element)
Expand Down
3 changes: 3 additions & 0 deletions queries/tsx/context.scm
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
(else_clause)
(expression_statement)
(for_statement)
(for_in_statement)
(interface_declaration)
(jsx_element)
(jsx_self_closing_element)
Expand All @@ -16,6 +17,8 @@
(object)
(pair)
(while_statement)
(switch_statement)
(switch_case)
] @context)

(arrow_function
Expand Down
3 changes: 3 additions & 0 deletions queries/typescript/context.scm
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@
(else_clause)
(expression_statement)
(for_statement)
(for_in_statement)
(interface_declaration)
(lexical_declaration)
(method_definition)
(object)
(pair)
(while_statement)
(switch_statement)
(switch_case)
] @context)

(arrow_function
Expand Down

0 comments on commit 6b081ea

Please sign in to comment.