From 7fdcbf5821bf2cd2ddbec1fdd6c1035441fbc0b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jostein=20Kj=C3=B8nigsen?= Date: Mon, 28 Nov 2022 17:51:19 +0100 Subject: [PATCH 6/6] lisp/progmodes/typescript-ts-mode.el: Fontify all types in class-declarations Without this patch, extends-clausing like "Bar" in the following code will not be highlighted as a type: ````ts class Foo extends Bar implements Baz { } ```` --- lisp/progmodes/typescript-ts-mode.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/progmodes/typescript-ts-mode.el b/lisp/progmodes/typescript-ts-mode.el index bb00d873161..43efe87aae1 100644 --- a/lisp/progmodes/typescript-ts-mode.el +++ b/lisp/progmodes/typescript-ts-mode.el @@ -158,6 +158,8 @@ typescript-ts-mode--font-lock-settings (enum_declaration (identifier) @font-lock-type-face) + (extends_clause value: (identifier) @font-lock-type-face) + (arrow_function parameter: (identifier) @font-lock-variable-name-face) -- 2.37.2