[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 4561844720: ruby-ts-mode: Highlight singleton method definition
From: |
Dmitry Gutov |
Subject: |
emacs-29 4561844720: ruby-ts-mode: Highlight singleton method definitions and setters |
Date: |
Sun, 1 Jan 2023 20:31:13 -0500 (EST) |
branch: emacs-29
commit 45618447203a1332125106bf2d7a61f2c53e3939
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
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.
---
lisp/progmodes/ruby-ts-mode.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lisp/progmodes/ruby-ts-mode.el b/lisp/progmodes/ruby-ts-mode.el
index 2654f08fe8..ac016caccd 100644
--- a/lisp/progmodes/ruby-ts-mode.el
+++ b/lisp/progmodes/ruby-ts-mode.el
@@ -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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-29 4561844720: ruby-ts-mode: Highlight singleton method definitions and setters,
Dmitry Gutov <=