From 5ab03bcc433acbd0ce7126e40746efe092e0805a Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Fri, 6 Jan 2023 16:17:50 +0200 Subject: [PATCH] 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. --- lisp/progmodes/js.el | 2 +- lisp/progmodes/ruby-ts-mode.el | 4 ++-- lisp/progmodes/typescript-ts-mode.el | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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 -- 2.39.2