ruby-ts-mode: Highlight singleton method definitions and setters

* lisp/progmodes/ruby-ts-mode.el (ruby-ts--font-lock-settings):
Highlight singleton method definitions and setters.
This commit is contained in:
Dmitry Gutov 2023-01-02 03:29:15 +02:00
parent 0562006da3
commit 4561844720

View file

@ -284,7 +284,11 @@ values of OVERRIDE"
:language language
:feature 'method-definition
'((method
name: (identifier) @font-lock-function-name-face))
name: (identifier) @font-lock-function-name-face)
(singleton_method
name: (identifier) @font-lock-function-name-face)
(method
name: (setter) @font-lock-function-name-face))
;; Yuan recommends also putting method definitions into the
;; 'function' category (thus keeping it in both). I've opted to