Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
languages: Apply JSX fixes to JavaScript highlights (#47130)
Finn Evers2321178f2857
diff --git a/crates/languages/src/javascript/highlights.scm b/crates/languages/src/javascript/highlights.scmindex cb94f24ea22..3194b256a94 100644--- a/crates/languages/src/javascript/highlights.scm+++ b/crates/languages/src/javascript/highlights.scm@@ -322,10 +322,6 @@] @keyword; JSX elements-(jsx_opening_element (identifier) @tag.jsx (#match? @tag.jsx "^[a-z][^.]*$"))-(jsx_closing_element (identifier) @tag.jsx (#match? @tag.jsx "^[a-z][^.]*$"))-(jsx_self_closing_element (identifier) @tag.jsx (#match? @tag.jsx "^[a-z][^.]*$"))-(jsx_opening_element[(identifier) @type@@ -354,6 +350,9 @@])+(jsx_opening_element (identifier) @tag.jsx (#match? @tag.jsx "^[a-z][^.]*$"))+(jsx_closing_element (identifier) @tag.jsx (#match? @tag.jsx "^[a-z][^.]*$"))+(jsx_self_closing_element (identifier) @tag.jsx (#match? @tag.jsx "^[a-z][^.]*$"))(jsx_attribute (property_identifier) @attribute.jsx)(jsx_opening_element (["<" ">"]) @punctuation.bracket.jsx)(jsx_closing_element (["</" ">"]) @punctuation.bracket.jsx)