mirror of https://github.com/Wilfred/difftastic/
9 lines
437 B
Scheme
9 lines
437 B
Scheme
(jsx_opening_element (identifier) @tag (#match? @tag "^[a-z][^.]*$"))
|
|
(jsx_closing_element (identifier) @tag (#match? @tag "^[a-z][^.]*$"))
|
|
(jsx_self_closing_element (identifier) @tag (#match? @tag "^[a-z][^.]*$"))
|
|
|
|
(jsx_attribute (property_identifier) @attribute)
|
|
(jsx_opening_element (["<" ">"]) @punctuation.bracket)
|
|
(jsx_closing_element (["</" ">"]) @punctuation.bracket)
|
|
(jsx_self_closing_element (["<" "/>"]) @punctuation.bracket)
|