summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Gutov <dgutov@yandex.ru>2023-01-02 20:42:52 +0200
committerDmitry Gutov <dgutov@yandex.ru>2023-01-02 20:42:52 +0200
commitf8f5202487c0909a253228e63a64ba17d9c459da (patch)
tree6cda1bfa2329062b1eb64ff13c66c4ae0709e47c
parenta86a213e1ac6439557703ab6a3a1294160ffcdc2 (diff)
downloademacs-f8f5202487c.tar.gz
(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.
-rw-r--r--lisp/progmodes/typescript-ts-mode.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/progmodes/typescript-ts-mode.el b/lisp/progmodes/typescript-ts-mode.el
index d3266134500..a0ba425b3e9 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)))