[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master b561f896b5e: ruby-ts--s-p-query: Put '_' syntax on ?! method defi
From: |
Dmitry Gutov |
Subject: |
master b561f896b5e: ruby-ts--s-p-query: Put '_' syntax on ?! method definitions |
Date: |
Wed, 25 Dec 2024 23:17:58 -0500 (EST) |
branch: master
commit b561f896b5e52d3e4571901fd5d545354ba29bac
Author: Dmitry Gutov <dmitry@gutov.dev>
Commit: Dmitry Gutov <dmitry@gutov.dev>
ruby-ts--s-p-query: Put '_' syntax on ?! method definitions
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--s-p-query):
Put 'symbol' syntax on method definitions ending with [?!].
Reported in https://github.com/dgutov/robe/issues/149.
---
lisp/progmodes/ruby-ts-mode.el | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lisp/progmodes/ruby-ts-mode.el b/lisp/progmodes/ruby-ts-mode.el
index a6fe39da45f..0ee72df6c9d 100644
--- a/lisp/progmodes/ruby-ts-mode.el
+++ b/lisp/progmodes/ruby-ts-mode.el
@@ -1052,6 +1052,9 @@ leading double colon is not added."
;; Method calls with name ending with ? or !.
((call method: (identifier) @ident)
(:match "[?!]\\'" @ident))
+ ;; Method definitions for the above.
+ ((method name: (identifier) @ident)
+ (:match "[?!]\\'" @ident))
;; Backtick method redefinition.
((operator "`" @backtick))
;; TODO: Stop at interpolations.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master b561f896b5e: ruby-ts--s-p-query: Put '_' syntax on ?! method definitions,
Dmitry Gutov <=