mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-03 10:57:48 +03:00
ref: Make textobjects usable by jsx and tsx
This commit is contained in:
parent
adc9abb6c8
commit
f317d55361
2 changed files with 7 additions and 6 deletions
7
runtime/queries/_jsx/textobjects.scm
Normal file
7
runtime/queries/_jsx/textobjects.scm
Normal file
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue