Skip to content

Commit

Permalink
Reorder scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
chbk committed Feb 21, 2025
1 parent 110bede commit 0af3279
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions crates/languages/src/javascript/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@
(jsx_self_closing_element (identifier) @tag.jsx (#match? @tag.jsx "^[a-z][^.]*$"))

(jsx_attribute (property_identifier) @attribute.jsx)
(jsx_opening_element (["<" ">"]) @punctuation.jsx.bracket)
(jsx_closing_element (["</" ">"]) @punctuation.jsx.bracket)
(jsx_self_closing_element (["<" "/>"]) @punctuation.jsx.bracket)
(jsx_attribute "=" @punctuation.jsx.delimiter)
(jsx_opening_element (["<" ">"]) @punctuation.bracket.jsx)
(jsx_closing_element (["</" ">"]) @punctuation.bracket.jsx)
(jsx_self_closing_element (["<" "/>"]) @punctuation.bracket.jsx)
(jsx_attribute "=" @punctuation.delimiter.jsx)
(jsx_text) @text.jsx
8 changes: 4 additions & 4 deletions crates/languages/src/tsx/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@
(jsx_self_closing_element (identifier) @tag.jsx (#match? @tag.jsx "^[a-z][^.]*$"))

(jsx_attribute (property_identifier) @attribute.jsx)
(jsx_opening_element (["<" ">"]) @punctuation.jsx.bracket)
(jsx_closing_element (["</" ">"]) @punctuation.jsx.bracket)
(jsx_self_closing_element (["<" "/>"]) @punctuation.jsx.bracket)
(jsx_attribute "=" @punctuation.jsx.delimiter)
(jsx_opening_element (["<" ">"]) @punctuation.bracket.jsx)
(jsx_closing_element (["</" ">"]) @punctuation.bracket.jsx)
(jsx_self_closing_element (["<" "/>"]) @punctuation.bracket.jsx)
(jsx_attribute "=" @punctuation.delimiter.jsx)
(jsx_text) @text.jsx

0 comments on commit 0af3279

Please sign in to comment.