emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 5ab03bcc43: Unify the string interpolation delimiters face acro


From: Dmitry Gutov
Subject: emacs-29 5ab03bcc43: Unify the string interpolation delimiters face across ts modes
Date: Fri, 6 Jan 2023 09:18:40 -0500 (EST)

branch: emacs-29
commit 5ab03bcc433acbd0ce7126e40746efe092e0805a
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>

    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 050472002b..90b9068fd5 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 87fd4ae535..bf09726b34 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 e0583f4b05..4042e2b101 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]