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