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:
parent
0562006da3
commit
4561844720
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue