Help with tree-sitter scopes #9740
-
I was wondering if anyone could help me add a small tree-sitter query/scope to my config. I want to change the color of opening and closing angle brackets in JSX/TSX/HTML ( |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You can create a ; inherits: _jsx,_javascript,ecma
(jsx_opening_element ["<" ">"] @mycapture)
(jsx_closing_element ["</" ">"] @mycapture)
(jsx_self_closing_element ["<" "/>"] @mycapture) then you can theme |
Beta Was this translation helpful? Give feedback.
You might need to move the
; inherits: ...
line below the patterns so that the custom patterns take priority