emacs-diffs
[Top][All Lists]
Advanced

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

emacs-29 f8f5202487 2/2: (typescript/tsx-ts-mode): Split font-lock featu


From: Dmitry Gutov
Subject: emacs-29 f8f5202487 2/2: (typescript/tsx-ts-mode): Split font-lock feature list into 4 values
Date: Mon, 2 Jan 2023 13:43:09 -0500 (EST)

branch: emacs-29
commit f8f5202487c0909a253228e63a64ba17d9c459da
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>

    (typescript/tsx-ts-mode): Split font-lock feature list into 4 values
    
    * lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode)
    (tsx-ts-mode): Split font-lock feature list into 4 values.
---
 lisp/progmodes/typescript-ts-mode.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lisp/progmodes/typescript-ts-mode.el 
b/lisp/progmodes/typescript-ts-mode.el
index d326613450..a0ba425b3e 100644
--- a/lisp/progmodes/typescript-ts-mode.el
+++ b/lisp/progmodes/typescript-ts-mode.el
@@ -374,7 +374,8 @@ Argument LANGUAGE is either `typescript' or `tsx'."
     (setq-local treesit-font-lock-settings
                 (typescript-ts-mode--font-lock-settings 'typescript))
     (setq-local treesit-font-lock-feature-list
-                '((comment declaration keyword string escape-sequence)
+                '((comment declaration)
+                  (keyword string escape-sequence)
                   (constant expression identifier number pattern property)
                   (bracket delimiter)))
 
@@ -408,7 +409,8 @@ Argument LANGUAGE is either `typescript' or `tsx'."
     (setq-local treesit-font-lock-settings
                 (typescript-ts-mode--font-lock-settings 'tsx))
     (setq-local treesit-font-lock-feature-list
-                '((comment declaration keyword string escape-sequence)
+                '((comment declaration)
+                  (keyword string escape-sequence)
                   (constant expression identifier jsx number pattern property)
                   (bracket delimiter)))
 



reply via email to

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