From fb69611568c06b4a64a6be546ce7bcaa89811451 Mon Sep 17 00:00:00 2001 From: Nate Butler Date: Tue, 28 Feb 2023 11:19:55 -0500 Subject: [PATCH] Fix order of `template_substitution` in highlights.scm --- crates/zed/src/languages/javascript/highlights.scm | 8 ++++---- crates/zed/src/languages/typescript/highlights.scm | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/crates/zed/src/languages/javascript/highlights.scm b/crates/zed/src/languages/javascript/highlights.scm index 21af8b03c4..9dc3af4eae 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) @type diff --git a/crates/zed/src/languages/typescript/highlights.scm b/crates/zed/src/languages/typescript/highlights.scm index 5c459fba9e..4b744c3a80 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