From 583ba1db7ee31349eeef94f9dcb6e43f860a32eb Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Sat, 3 Jun 2023 15:00:41 +0300 Subject: [PATCH] typescript-ts-mode: Add a rule for function_signature * lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode--font-lock-settings): Add a rule for function_signature (bug#63867) --- lisp/progmodes/typescript-ts-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/typescript-ts-mode.el b/lisp/progmodes/typescript-ts-mode.el index e30eb880266..09e04f0cd0e 100644 --- a/lisp/progmodes/typescript-ts-mode.el +++ b/lisp/progmodes/typescript-ts-mode.el @@ -173,9 +173,10 @@ Argument LANGUAGE is either `typescript' or `tsx'." :feature 'declaration `((function name: (identifier) @font-lock-function-name-face) - (function_declaration name: (identifier) @font-lock-function-name-face) + (function_signature + name: (identifier) @font-lock-function-name-face) (method_definition name: (property_identifier) @font-lock-function-name-face) -- 2.39.2