From a5c1cdb022749b637bde8c322ba90599f876222c Mon Sep 17 00:00:00 2001 From: Nikita Revenco <154856872+nikitarevenco@users.noreply.github.com> Date: Fri, 27 Sep 2024 02:11:18 +0100 Subject: [PATCH] feat(ecma): add support for @return.inner, @return.outer and @statement.outer (#683) --- queries/ecma/textobjects.scm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/queries/ecma/textobjects.scm b/queries/ecma/textobjects.scm index 43fcd807..50919b0e 100644 --- a/queries/ecma/textobjects.scm +++ b/queries/ecma/textobjects.scm @@ -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