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:
parent
92e8c0c091
commit
5ab03bcc43
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue