From: Dmitry Gutov Date: Fri, 6 Jan 2023 14:17:50 +0000 (+0200) Subject: Unify the string interpolation delimiters face across ts modes X-Git-Tag: emacs-29.0.90~821 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5ab03bcc433acbd0ce7126e40746efe092e0805a;p=emacs.git 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. --- diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index 050472002bb..90b9068fd5d 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el @@ -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 diff --git a/lisp/progmodes/ruby-ts-mode.el b/lisp/progmodes/ruby-ts-mode.el index 87fd4ae535f..bf09726b34f 100644 --- a/lisp/progmodes/ruby-ts-mode.el +++ b/lisp/progmodes/ruby-ts-mode.el @@ -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 diff --git a/lisp/progmodes/typescript-ts-mode.el b/lisp/progmodes/typescript-ts-mode.el index e0583f4b05c..4042e2b1013 100644 --- a/lisp/progmodes/typescript-ts-mode.el +++ b/lisp/progmodes/typescript-ts-mode.el @@ -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