mirror of https://github.com/helix-editor/helix
feat: Add textobjects for XML, HTML and jsx
parent
e5dd60f794
commit
adc9abb6c8
@ -0,0 +1,9 @@
|
|||||||
|
(script_element (start_tag) (_) @xml_element.inside (end_tag)) @xml_element.around
|
||||||
|
|
||||||
|
(style_element (start_tag) (_) @xml_element.inside (end_tag)) @xml_element.around
|
||||||
|
|
||||||
|
(element (start_tag) (_)* @xml_element.inside (end_tag))
|
||||||
|
|
||||||
|
(element) @xml_element.around
|
||||||
|
|
||||||
|
(comment) @comment.around
|
@ -1,3 +1,9 @@
|
|||||||
; See runtime/queries/ecma/README.md for more info.
|
; See runtime/queries/ecma/README.md for more info.
|
||||||
|
|
||||||
; inherits: _jsx,_javascript,ecma
|
; 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,0 +1,5 @@
|
|||||||
|
(element (start_tag) (_)* @xml_element.inside (end_tag))
|
||||||
|
|
||||||
|
(element) @xml_element.around
|
||||||
|
|
||||||
|
(comment) @comment.around
|
Loading…
Reference in New Issue