Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix order of `template_substitution` in highlights.scm
Nate Butlerfb69611568c0
diff --git a/crates/zed/src/languages/javascript/highlights.scm b/crates/zed/src/languages/javascript/highlights.scmindex 21af8b03c46..9dc3af4eaea 100644--- a/crates/zed/src/languages/javascript/highlights.scm+++ b/crates/zed/src/languages/javascript/highlights.scm@@ -80,10 +80,6 @@; Tokens-(template_substitution- "${" @punctuation.special- "}" @punctuation.special) @embedded-[";""?."@@ -192,6 +188,10 @@"yield"] @keyword+(template_substitution+ "${" @punctuation.special+ "}" @punctuation.special) @embedded+; Types(type_identifier) @typediff --git a/crates/zed/src/languages/typescript/highlights.scm b/crates/zed/src/languages/typescript/highlights.scmindex 5c459fba9e7..4b744c3a806 100644--- a/crates/zed/src/languages/typescript/highlights.scm+++ b/crates/zed/src/languages/typescript/highlights.scm@@ -80,10 +80,6 @@; Tokens-(template_substitution- "${" @punctuation.special- "}" @punctuation.special) @embedded-[";""?."@@ -193,6 +189,10 @@"yield"] @keyword+(template_substitution+ "${" @punctuation.special+ "}" @punctuation.special) @embedded+; Types(type_identifier) @type