]> git.eshelyaron.com Git - emacs.git/commit
Support Ruby block arguments ending with , or *
authorNobuyoshi Nakada <nobu@ruby-lang.org>
Tue, 11 Dec 2018 01:12:46 +0000 (03:12 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Tue, 11 Dec 2018 01:14:35 +0000 (03:14 +0200)
commit3729a3f88fd7ce1d8a1a7f2ea61e8c4d05e954ab
tree0fe2191e9d64bbe41e3c9984fd0d8119c6d8a398
parent0054961acf319378a588bda1df7d32d2bc0f284d
Support Ruby block arguments ending with , or *

* lisp/progmodes/ruby-mode.el (ruby-smie--forward-token):
Recognize punctuation before "closing-|" as a separate token.
(ruby-smie--backward-token): Same (bug#33487).

* test/lisp/progmodes/ruby-mode-tests.el
(ruby-forward-sexp-jumps-do-end-block-with-no-args)
(ruby-backward-sexp-jumps-do-end-block-with-no-args)
(ruby-forward-sexp-jumps-do-end-block-with-empty-args)
(ruby-backward-sexp-jumps-do-end-block-with-empty-args)
(ruby-forward-sexp-jumps-do-end-block-with-args)
(ruby-backward-sexp-jumps-do-end-block-with-args)
(ruby-forward-sexp-jumps-do-end-block-with-any-args)
(ruby-forward-sexp-jumps-do-end-block-with-expanded-one-arg)
(ruby-forward-sexp-jumps-do-end-block-with-one-and-any-args)
(ruby-backward-sexp-jumps-do-end-block-with-one-and-any-args):
New tests.
lisp/progmodes/ruby-mode.el
test/lisp/progmodes/ruby-mode-tests.el