(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.
This commit is contained in:
parent
a86a213e1a
commit
f8f5202487
1 changed files with 4 additions and 2 deletions
|
@ -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)))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue