Skip to content

Commit

Permalink
feat(ecma): add support for @return.inner, @return.outer and @stateme…
Browse files Browse the repository at this point in the history
…nt.outer (#683)
  • Loading branch information
NikitaRevenco authored Sep 27, 2024
1 parent bf8d2ad commit a5c1cdb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions queries/ecma/textobjects.scm
Original file line number Diff line number Diff line change
Expand Up @@ -251,3 +251,18 @@
(pair
key: (_) @assignment.lhs
value: (_) @assignment.inner @assignment.rhs) @assignment.outer)

(return_statement
(_) @return.inner) @return.outer

(return_statement) @statement.outer

[
(if_statement)
(expression_statement)
(for_statement)
(while_statement)
(do_statement)
(for_in_statement)
(export_statement)
] @statement.outer

0 comments on commit a5c1cdb

Please sign in to comment.