aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Gutov2023-01-06 16:17:50 +0200
committerDmitry Gutov2023-01-06 16:17:50 +0200
commit5ab03bcc433acbd0ce7126e40746efe092e0805a (patch)
tree796bbaf12fddd965be6fc98b5a489e3b9855d95a
parent92e8c0c091cdb67b27fa271814614ba4cab478d6 (diff)
downloademacs-5ab03bcc433acbd0ce7126e40746efe092e0805a.tar.gz
emacs-5ab03bcc433acbd0ce7126e40746efe092e0805a.zip
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.
-rw-r--r--lisp/progmodes/js.el2
-rw-r--r--lisp/progmodes/ruby-ts-mode.el4
-rw-r--r--lisp/progmodes/typescript-ts-mode.el2
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'."
3505 :feature 'string-interpolation 3505 :feature 'string-interpolation
3506 :override t 3506 :override t
3507 '((template_string) @js--fontify-template-string 3507 '((template_string) @js--fontify-template-string
3508 (template_substitution ["${" "}"] @font-lock-delimiter-face)) 3508 (template_substitution ["${" "}"] @font-lock-misc-punctuation-face))
3509 3509
3510 :language 'javascript 3510 :language 'javascript
3511 :feature 'definition 3511 :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"
259 259
260 :language language 260 :language language
261 :feature 'interpolation 261 :feature 'interpolation
262 '((interpolation "#{" @font-lock-delimiter-face) 262 '((interpolation "#{" @font-lock-misc-punctuation-face)
263 (interpolation "}" @font-lock-delimiter-face)) 263 (interpolation "}" @font-lock-misc-punctuation-face))
264 264
265 :language language 265 :language language
266 :feature 'type 266 :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'."
154 `((regex pattern: (regex_pattern)) @font-lock-string-face 154 `((regex pattern: (regex_pattern)) @font-lock-string-face
155 (string) @font-lock-string-face 155 (string) @font-lock-string-face
156 (template_string) @js--fontify-template-string 156 (template_string) @js--fontify-template-string
157 (template_substitution ["${" "}"] @font-lock-builtin-face)) 157 (template_substitution ["${" "}"] @font-lock-misc-punctuation-face))
158 158
159 :language language 159 :language language
160 :override t 160 :override t