From: Dmitry Gutov Date: Mon, 2 Jan 2023 22:41:25 +0000 (+0200) Subject: ruby-ts--font-lock-settings: Use more standard faces X-Git-Tag: emacs-29.0.90~851 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9b24417dda83087edb5b8bb5d2daf158c70b4193;p=emacs.git 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). --- diff --git a/lisp/progmodes/ruby-ts-mode.el b/lisp/progmodes/ruby-ts-mode.el index 92c8f93a799..96596cb5daf 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