@@ -4,9 +4,6 @@
44(jsx_opening_element ((identifier) @constructor
55 (#match? @constructor "^[A-Z]")))
66
7−; Handle the dot operator effectively - <My.Component>
8−(jsx_opening_element ((nested_identifier (identifier) @tag (identifier) @constructor)))
9−
107(jsx_opening_element (identifier) @tag)
118
129; Closing elements
@@ -15,9 +12,6 @@
1512(jsx_closing_element ((identifier) @constructor
1613 (#match? @constructor "^[A-Z]")))
1714
18−; Handle the dot operator effectively - </My.Component>
19−(jsx_closing_element ((nested_identifier (identifier) @tag (identifier) @constructor)))
20−
2115(jsx_closing_element (identifier) @tag)
2216
2317; Self-closing elements
@@ -26,9 +20,6 @@
2620(jsx_self_closing_element ((identifier) @constructor
2721 (#match? @constructor "^[A-Z]")))
2822
29−; Handle the dot operator effectively - <My.Component />
30−(jsx_self_closing_element ((nested_identifier (identifier) @tag (identifier) @constructor)))
31−
3223(jsx_self_closing_element (identifier) @tag)
3324
3425; Attributes
@@ -39,17 +30,14 @@
3930; Punctuation
4031; -----------
4132
42−; Handle attribute delimiter
33+; Handle attribute delimiter (<Component color="red"/>)
4334(jsx_attribute "=" @punctuation.delimiter)
4435
4536; <Component>
4637(jsx_opening_element ["<" ">"] @punctuation.bracket)
4738
4839; </Component>
49−(jsx_closing_element ["<" "/" ">"] @punctuation.bracket)
40+(jsx_closing_element ["</" ">"] @punctuation.bracket)
5041
5142; <Component />
52−(jsx_self_closing_element ["<" "/" ">"] @punctuation.bracket)
53−
54−; <> ... </>
55−(jsx_fragment ["<" "/" ">"] @punctuation.bracket)
43+(jsx_self_closing_element ["<" "/>"] @punctuation.braket)