emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 583ba1db7ee: typescript-ts-mode: Add a rule for function_signat


From: Dmitry Gutov
Subject: emacs-29 583ba1db7ee: typescript-ts-mode: Add a rule for function_signature
Date: Sat, 3 Jun 2023 08:00:53 -0400 (EDT)

branch: emacs-29
commit 583ba1db7ee31349eeef94f9dcb6e43f860a32eb
Author: Dmitry Gutov <dmitry@gutov.dev>
Commit: Dmitry Gutov <dmitry@gutov.dev>

    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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]