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).
This commit is contained in:
Dmitry Gutov 2023-01-03 00:41:25 +02:00
parent 9e6536e4d9
commit 9b24417dda

View file

@ -237,8 +237,10 @@ values of OVERRIDE"
;; Also before 'operator because % and / are operators ;; Also before 'operator because % and / are operators
:language language :language language
:feature 'regexp :feature 'regexp
'((regex "/" @font-lock-regexp-grouping-construct) ;; TODO: We probably need a separate face for regexps everywhere.
(regex _ (string_content) @font-lock-regexp-grouping-backslash)) ;; Maybe another one for regexp delimiters as well.
'((regex "/" @font-lock-string-face)
(regex _ (string_content) @font-lock-string-face))
:language language :language language
:feature 'operator :feature 'operator
@ -267,8 +269,8 @@ values of OVERRIDE"
:language language :language language
:feature 'interpolation :feature 'interpolation
'((interpolation "#{" @font-lock-doc-face) '((interpolation "#{" @font-lock-delimiter-face)
(interpolation "}" @font-lock-doc-face)) (interpolation "}" @font-lock-delimiter-face))
:language language :language language
:feature 'type :feature 'type