]> git.eshelyaron.com Git - emacs.git/commitdiff
(typescript/tsx-ts-mode): Split font-lock feature list into 4 values
authorDmitry Gutov <dgutov@yandex.ru>
Mon, 2 Jan 2023 18:42:52 +0000 (20:42 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 2 Jan 2023 18:42:52 +0000 (20:42 +0200)
* 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

index d3266134500003dcdab4e86d208adf23e8ceb08b..a0ba425b3e90a05faa668da4d250dcda8b532089 100644 (file)
@@ -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)))