[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 9b24417dda 2/2: ruby-ts--font-lock-settings: Use more standard
From: |
Dmitry Gutov |
Subject: |
emacs-29 9b24417dda 2/2: ruby-ts--font-lock-settings: Use more standard faces |
Date: |
Mon, 2 Jan 2023 17:42:37 -0500 (EST) |
branch: emacs-29
commit 9b24417dda83087edb5b8bb5d2daf158c70b4193
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
ruby-ts--font-lock-settings: Use more standard faces
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--font-lock-settings):
Use more standard faces for regexp literals and string
interpolation delimiters (following js-ts-mode).
---
lisp/progmodes/ruby-ts-mode.el | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/lisp/progmodes/ruby-ts-mode.el b/lisp/progmodes/ruby-ts-mode.el
index 92c8f93a79..96596cb5da 100644
--- a/lisp/progmodes/ruby-ts-mode.el
+++ b/lisp/progmodes/ruby-ts-mode.el
@@ -237,8 +237,10 @@ values of OVERRIDE"
;; Also before 'operator because % and / are operators
:language language
:feature 'regexp
- '((regex "/" @font-lock-regexp-grouping-construct)
- (regex _ (string_content) @font-lock-regexp-grouping-backslash))
+ ;; TODO: We probably need a separate face for regexps everywhere.
+ ;; Maybe another one for regexp delimiters as well.
+ '((regex "/" @font-lock-string-face)
+ (regex _ (string_content) @font-lock-string-face))
:language language
:feature 'operator
@@ -267,8 +269,8 @@ values of OVERRIDE"
:language language
:feature 'interpolation
- '((interpolation "#{" @font-lock-doc-face)
- (interpolation "}" @font-lock-doc-face))
+ '((interpolation "#{" @font-lock-delimiter-face)
+ (interpolation "}" @font-lock-delimiter-face))
:language language
:feature 'type