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 21af8b03c4647bb63b4fd6153988efc2d64e5075..9dc3af4eaea8a24d159acd1db120f5c06aa49915 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 5c459fba9e75d2484b8fbdc4643c0df1cb928292..4b744c3a8062601c6bf16410d5f0f7805d8e408f 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