]> git.eshelyaron.com Git - emacs.git/commitdiff
typescript-ts-mode: Add a rule for function_signature
authorDmitry Gutov <dmitry@gutov.dev>
Sat, 3 Jun 2023 12:00:41 +0000 (15:00 +0300)
committerDmitry Gutov <dmitry@gutov.dev>
Sat, 3 Jun 2023 12:00:41 +0000 (15:00 +0300)
* 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

index e30eb88026696eb12510a26a75db54ce6c4f4728..09e04f0cd0e0326cf2497a804faacaa4f3017c67 100644 (file)
@@ -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)