Skip to content

Commit

Permalink
ref: Make textobjects usable by jsx and tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Ansimorph committed Aug 28, 2024
1 parent a5b50d1 commit 2c82769
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 7 additions & 0 deletions runtime/queries/_jsx/textobjects.scm
Original file line number Diff line number Diff line change
@@ -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
6 changes: 0 additions & 6 deletions runtime/queries/jsx/textobjects.scm
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2c82769

Please sign in to comment.