Subject: bug#59660: lisp/progmodes/typescript-ts-mode.el: restore method-name fontification

From: Jostein Kjønigsen <[email-masked]>
Date: Mon, 28 Nov 2022 17:53:45 +0100

And another improvement.

--
Kind regards
*Jostein Kjønigsen*

[email-masked] 🍵 [email-masked]
https://jostein.kjønigsen.no <https://jostein.kjønigsen.no>
On 28.11.2022 17:44, Jostein Kjønigsen wrote:
>
> This additional patch further improves fontification by fontifying 
> function-arguments as variables too.
>
> --
>
> Kind regards
> *Jostein Kjønigsen*
>
> [email-masked] 🍵 [email-masked]
> https://jostein.kjønigsen.no <https://jostein.kjønigsen.no>
> On 28.11.2022 16:09, Jostein Kjønigsen wrote:
>>
>> Attached is a simple patch which addresses this font-lock issue and 
>> makes typescript-ts-mode much better to use.
>>
>> -- 
>> Kind regards
>> *Jostein Kjønigsen*
>>
>> [email-masked] 🍵 [email-masked]
>> https://jostein.kjønigsen.no <https://jostein.kjønigsen.no>

From 7fdcbf5821bf2cd2ddbec1fdd6c1035441fbc0b7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jostein=20Kj=C3=B8nigsen?= <[email-masked]>
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