From e385c099b8c3eda3c7e3ad397c1b4a8ff2be4010 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jostein=20Kj=C3=B8nigsen?= Date: Mon, 9 Jan 2023 11:17:53 +0100 Subject: [PATCH] Improve fontification for import-statements in typescript-ts-mode (bug#60689) * lisp/progmodes/typescript-ts-mode.el: (typescript-ts-mode--font-lock-settings): Add rules to highlight the actual imports in import-statements. --- 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 b26dca101db..037d5c8e87e 100644 --- a/lisp/progmodes/typescript-ts-mode.el +++ b/lisp/progmodes/typescript-ts-mode.el @@ -197,7 +197,10 @@ Argument LANGUAGE is either `typescript' or `tsx'." value: (array (number) (function))) (catch_clause - parameter: (identifier) @font-lock-variable-name-face)) + parameter: (identifier) @font-lock-variable-name-face) + + (import_clause (identifier) @font-lock-variable-name-face) + (import_clause (named_imports (import_specifier (identifier)) @font-lock-variable-name-face))) :language language :override t -- 2.39.2