2020-08-17 00:21:34 +02:00
|
|
|
(jsx_element
|
2024-03-21 20:44:35 +09:00
|
|
|
open_tag: (jsx_opening_element
|
|
|
|
|
[
|
|
|
|
|
"<"
|
|
|
|
|
">"
|
|
|
|
|
] @tag.delimiter))
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2020-08-17 00:21:34 +02:00
|
|
|
(jsx_element
|
2024-03-21 20:44:35 +09:00
|
|
|
close_tag: (jsx_closing_element
|
|
|
|
|
[
|
|
|
|
|
"</"
|
|
|
|
|
">"
|
|
|
|
|
] @tag.delimiter))
|
2024-01-06 15:05:50 +09:00
|
|
|
|
|
|
|
|
(jsx_self_closing_element
|
|
|
|
|
[
|
|
|
|
|
"<"
|
|
|
|
|
"/>"
|
|
|
|
|
] @tag.delimiter)
|
|
|
|
|
|
|
|
|
|
(jsx_attribute
|
|
|
|
|
(property_identifier) @tag.attribute)
|
2020-08-17 00:21:34 +02:00
|
|
|
|
2020-09-19 12:21:28 +02:00
|
|
|
(jsx_opening_element
|
2024-01-24 10:47:26 -08:00
|
|
|
name: (identifier) @tag.builtin)
|
2020-09-19 12:21:28 +02:00
|
|
|
|
|
|
|
|
(jsx_closing_element
|
2024-01-24 10:47:26 -08:00
|
|
|
name: (identifier) @tag.builtin)
|
2020-09-19 12:21:28 +02:00
|
|
|
|
2020-10-20 12:10:50 -04:00
|
|
|
(jsx_self_closing_element
|
2024-01-24 10:47:26 -08:00
|
|
|
name: (identifier) @tag.builtin)
|
2020-09-19 12:21:28 +02:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
(jsx_opening_element
|
2024-01-24 10:47:26 -08:00
|
|
|
((identifier) @tag
|
|
|
|
|
(#lua-match? @tag "^[A-Z]")))
|
2020-09-19 12:21:28 +02:00
|
|
|
|
2020-10-20 12:10:50 -04:00
|
|
|
; Handle the dot operator effectively - <My.Component>
|
2024-01-06 15:05:50 +09:00
|
|
|
(jsx_opening_element
|
2024-01-21 22:05:44 +09:00
|
|
|
(member_expression
|
2024-01-24 10:47:26 -08:00
|
|
|
(identifier) @tag.builtin
|
|
|
|
|
(property_identifier) @tag))
|
2020-10-20 12:10:50 -04:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
(jsx_closing_element
|
2024-01-24 10:47:26 -08:00
|
|
|
((identifier) @tag
|
|
|
|
|
(#lua-match? @tag "^[A-Z]")))
|
2020-09-19 12:21:28 +02:00
|
|
|
|
2020-10-20 12:10:50 -04:00
|
|
|
; Handle the dot operator effectively - </My.Component>
|
2024-01-06 15:05:50 +09:00
|
|
|
(jsx_closing_element
|
2024-01-21 22:05:44 +09:00
|
|
|
(member_expression
|
2024-01-24 10:47:26 -08:00
|
|
|
(identifier) @tag.builtin
|
|
|
|
|
(property_identifier) @tag))
|
2020-10-20 12:10:50 -04:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
(jsx_self_closing_element
|
2024-01-24 10:47:26 -08:00
|
|
|
((identifier) @tag
|
|
|
|
|
(#lua-match? @tag "^[A-Z]")))
|
2020-09-14 21:00:03 +02:00
|
|
|
|
2020-10-20 12:10:50 -04:00
|
|
|
; Handle the dot operator effectively - <My.Component />
|
2024-01-06 15:05:50 +09:00
|
|
|
(jsx_self_closing_element
|
2024-01-21 22:05:44 +09:00
|
|
|
(member_expression
|
2024-01-24 10:47:26 -08:00
|
|
|
(identifier) @tag.builtin
|
|
|
|
|
(property_identifier) @tag))
|
2020-10-20 12:10:50 -04:00
|
|
|
|
2024-01-31 10:55:10 -05:00
|
|
|
(html_character_reference) @tag
|
|
|
|
|
|
2024-02-11 17:51:12 -06:00
|
|
|
(jsx_text) @none @spell
|
2024-02-05 11:26:42 -05:00
|
|
|
|
|
|
|
|
(html_character_reference) @character.special
|