mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 01:16:18 +04:00
ref: Make textobjects usable by jsx and tsx
This commit is contained in:
parent
adc9abb6c8
commit
f317d55361
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…
Reference in New Issue
Block a user