From: Dmitry Gutov Date: Mon, 11 Mar 2019 00:30:08 +0000 (+0200) Subject: (ruby-add-log-current-method): Recognize methods ending with ? or ! X-Git-Tag: emacs-27.0.90~3435 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=66943d0c9cbb0cca33e1fc88a09af14b6abf45dd;p=emacs.git (ruby-add-log-current-method): Recognize methods ending with ? or ! * lisp/progmodes/ruby-mode.el (ruby-add-log-current-method): Recognize method names ending with ? or !. --- diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index e575d6cc16c..707875d130d 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el @@ -1614,7 +1614,7 @@ See `add-log-current-defun-function'." (concat "^[ \t]*" re "[ \t]+" "\\(" ;; \\. and :: for class methods - "\\([A-Za-z_]" ruby-symbol-re "*\\|\\.\\|::" "\\)" + "\\([A-Za-z_]" ruby-symbol-re "*[?!]?\\|\\.\\|::" "\\)" "+\\)"))) (definition-re (funcall make-definition-re ruby-defun-beg-re)) (module-re (funcall make-definition-re "\\(class\\|module\\)")))