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