Unify the string interpolation delimiters face across ts modes

* lisp/progmodes/js.el (js--treesit-font-lock-settings):
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--font-lock-settings):
* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--font-lock-settings):
Use font-lock-misc-punctuation-face for string interpolation
delimiters.
This commit is contained in:
Dmitry Gutov 2023-01-06 16:17:50 +02:00
parent 92e8c0c091
commit 5ab03bcc43
3 changed files with 4 additions and 4 deletions

View file

@ -3505,7 +3505,7 @@ This function is intended for use in `after-change-functions'."
:feature 'string-interpolation
:override t
'((template_string) @js--fontify-template-string
(template_substitution ["${" "}"] @font-lock-delimiter-face))
(template_substitution ["${" "}"] @font-lock-misc-punctuation-face))
:language 'javascript
:feature 'definition

View file

@ -259,8 +259,8 @@ values of OVERRIDE"
:language language
:feature 'interpolation
'((interpolation "#{" @font-lock-delimiter-face)
(interpolation "}" @font-lock-delimiter-face))
'((interpolation "#{" @font-lock-misc-punctuation-face)
(interpolation "}" @font-lock-misc-punctuation-face))
:language language
:feature 'type

View file

@ -154,7 +154,7 @@ Argument LANGUAGE is either `typescript' or `tsx'."
`((regex pattern: (regex_pattern)) @font-lock-string-face
(string) @font-lock-string-face
(template_string) @js--fontify-template-string
(template_substitution ["${" "}"] @font-lock-builtin-face))
(template_substitution ["${" "}"] @font-lock-misc-punctuation-face))
:language language
:override t