From f6dabadaf79bd29c89c8d55a1e9f1d33236f736e Mon Sep 17 00:00:00 2001 From: Jayden Seric Date: Sun, 29 Dec 2024 19:17:51 +1100 Subject: [PATCH] Syntax highlight the JavaScript keyword `using` (#22479) The ECMAScript Explicit Resource Management proposal (stage 3) that specifies the keyword `using`: https://github.com/tc39/proposal-explicit-resource-management This has already been done for the TypeScript and TSX languages: - https://github.com/zed-industries/zed/issues/14762 - https://github.com/zed-industries/zed/pull/14772 Release Notes: - Syntax highlight the JavaScript keyword `using` ([#22479](https://github.com/zed-industries/zed/pull/22479); thanks [jaydenseric](https://github.com/jaydenseric)). --- crates/languages/src/javascript/highlights.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/languages/src/javascript/highlights.scm b/crates/languages/src/javascript/highlights.scm index e5d4cb20689e7..8ae208d4cde1d 100644 --- a/crates/languages/src/javascript/highlights.scm +++ b/crates/languages/src/javascript/highlights.scm @@ -194,6 +194,7 @@ "throw" "try" "typeof" + "using" "var" "void" "while"