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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user