emacs-diffs
[Top][All Lists]
Advanced

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

emacs-29 7141920c6af 2/7: Fix escape-sequence feature in typescript-ts-m


From: Yuan Fu
Subject: emacs-29 7141920c6af 2/7: Fix escape-sequence feature in typescript-ts-mode (bug#59906)
Date: Fri, 9 Dec 2022 19:46:44 -0500 (EST)

branch: emacs-29
commit 7141920c6afdd9ead4a94f2a3314a8c1097d1b6b
Author: Theodor Thornhill <theo@thornhill.no>
Commit: Yuan Fu <casouri@gmail.com>

    Fix escape-sequence feature in typescript-ts-mode (bug#59906)
    
    * lisp/progmodes/typescript-ts-mode.el: (typescript-ts-mode,
    tsx-ts-mode): Use escape-sequence feature.
---
 lisp/progmodes/typescript-ts-mode.el | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/lisp/progmodes/typescript-ts-mode.el 
b/lisp/progmodes/typescript-ts-mode.el
index 243f6146ae7..c4a5bd37e05 100644
--- a/lisp/progmodes/typescript-ts-mode.el
+++ b/lisp/progmodes/typescript-ts-mode.el
@@ -361,8 +361,7 @@ 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)
+                '((comment declaration keyword string escape-sequence)
                   (constant expression identifier number pattern property)
                   (bracket delimiter)))
 
@@ -396,8 +395,7 @@ 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)
+                '((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]