]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix escape-sequence feature in typescript-ts-mode (bug#59906)
authorTheodor Thornhill <theo@thornhill.no>
Thu, 8 Dec 2022 15:17:49 +0000 (16:17 +0100)
committerYuan Fu <casouri@gmail.com>
Sat, 10 Dec 2022 00:46:00 +0000 (16:46 -0800)
* lisp/progmodes/typescript-ts-mode.el: (typescript-ts-mode,
tsx-ts-mode): Use escape-sequence feature.

lisp/progmodes/typescript-ts-mode.el

index 243f6146ae77396c8cc1a2e45a524a84459afd06..c4a5bd37e05b274ff3328669db1e5fe4b58483c2 100644 (file)
@@ -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)))