From f317d5536137e1b0f3beba850cd0087f623f677f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Ganslandt?= Date: Wed, 28 Aug 2024 15:53:06 +0200 Subject: [PATCH] ref: Make textobjects usable by jsx and tsx --- runtime/queries/_jsx/textobjects.scm | 7 +++++++ runtime/queries/jsx/textobjects.scm | 6 ------ 2 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 runtime/queries/_jsx/textobjects.scm diff --git a/runtime/queries/_jsx/textobjects.scm b/runtime/queries/_jsx/textobjects.scm new file mode 100644 index 000000000..9f7c3a6d7 --- /dev/null +++ b/runtime/queries/_jsx/textobjects.scm @@ -0,0 +1,7 @@ +; See runtime/queries/ecma/README.md for more info. + +(jsx_self_closing_element) @xml_element.around @xml_element.inside + +(jsx_element (jsx_opening_element) (_)* @xml_element.inside (jsx_closing_element)) + +(jsx_element) @xml_element.around diff --git a/runtime/queries/jsx/textobjects.scm b/runtime/queries/jsx/textobjects.scm index 6ac364800..eb2b1b1a4 100644 --- a/runtime/queries/jsx/textobjects.scm +++ b/runtime/queries/jsx/textobjects.scm @@ -1,9 +1,3 @@ ; See runtime/queries/ecma/README.md for more info. ; inherits: _jsx,_javascript,ecma - -(jsx_self_closing_element) @xml_element.around @xml_element.inside - -(jsx_element (jsx_opening_element) (_)* @xml_element.inside (jsx_closing_element)) - -(jsx_element) @xml_element.around