From edda634ca5e649ab9eb07b57b7866b8cf60b3645 Mon Sep 17 00:00:00 2001 From: rimuy <46044567+rimuy@users.noreply.github.com> Date: Thu, 18 Jul 2024 04:42:17 -0300 Subject: [PATCH] typescript: Highlight `infer` keyword (#14696) This PR adds syntax highlighting to TypeScript's [`infer`](https://www.typescriptlang.org/docs/handbook/2/conditional-types.html#inferring-within-conditional-types) keyword. Theme used: Sandcastle **Before:** ![image](https://github.com/user-attachments/assets/e082cc8c-2e12-4cfa-a641-40324dd93f31) **After:** ![image](https://github.com/user-attachments/assets/6263b5b2-19c8-4b64-87b6-ceead947bc03) Release Notes: - Added syntax highlighting to TypeScript's `infer` keyword ([#14696](https://github.com/zed-industries/zed/pull/14696)) --- crates/languages/src/typescript/highlights.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/languages/src/typescript/highlights.scm b/crates/languages/src/typescript/highlights.scm index d3deab1538..72a3171fd8 100644 --- a/crates/languages/src/typescript/highlights.scm +++ b/crates/languages/src/typescript/highlights.scm @@ -219,6 +219,7 @@ "enum" "export" "implements" + "infer" "interface" "keyof" "namespace"