From 45618447203a1332125106bf2d7a61f2c53e3939 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Mon, 2 Jan 2023 03:29:15 +0200 Subject: [PATCH] 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 2654f08fe85..ac016caccdc 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 -- 2.39.2