mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
add jsx fragment and jsx self closing element highlights
This commit is contained in:
parent
0b3cd6c131
commit
9c8c01dc0f
1 changed files with 3 additions and 0 deletions
|
|
@ -2,8 +2,11 @@
|
||||||
open_tag: (jsx_opening_element ["<" ">"] @operator))
|
open_tag: (jsx_opening_element ["<" ">"] @operator))
|
||||||
(jsx_element
|
(jsx_element
|
||||||
close_tag: (jsx_closing_element ["<" "/" ">"] @operator))
|
close_tag: (jsx_closing_element ["<" "/" ">"] @operator))
|
||||||
|
(jsx_self_closing_element ["/" ">" "<"] @operator)
|
||||||
|
(jsx_fragment [">" "<" "/"] @operator)
|
||||||
|
|
||||||
(jsx_closing_element name: (identifier) @variable.builtin)
|
(jsx_closing_element name: (identifier) @variable.builtin)
|
||||||
(jsx_opening_element name: (identifier) @variable.builtin)
|
(jsx_opening_element name: (identifier) @variable.builtin)
|
||||||
|
(jsx_self_closing_element name: (identifier) @variable.builtin)
|
||||||
|
|
||||||
(jsx_text) @none
|
(jsx_text) @none
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue