From 839f643674648026d055c69ddce3a00cf05b32fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jostein=20Kj=C3=B8nigsen?= Date: Wed, 4 Jan 2023 09:13:23 +0100 Subject: [PATCH 2/2] Fix highlighting of variable-declarations in typescript-ts-mode lisp/progmodes/typescript-ts-mode.el: highlight variable declarations in catch-clauses. --- lisp/progmodes/typescript-ts-mode.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/typescript-ts-mode.el b/lisp/progmodes/typescript-ts-mode.el index e0583f4b05c..97b9ccc88bc 100644 --- a/lisp/progmodes/typescript-ts-mode.el +++ b/lisp/progmodes/typescript-ts-mode.el @@ -194,7 +194,10 @@ typescript-ts-mode--font-lock-settings name: (array_pattern (identifier) (identifier) @font-lock-function-name-face) - value: (array (number) (function)))) + value: (array (number) (function))) + + (catch_clause + parameter: (identifier) @font-lock-variable-name-face)) :language language :override t -- 2.37.2