]> git.eshelyaron.com Git - emacs.git/commit
ruby-syntax-methods-before-regexp: Drop this whitelist
authorDmitry Gutov <dmitry@gutov.dev>
Sat, 16 Dec 2023 02:57:44 +0000 (04:57 +0200)
committerDmitry Gutov <dmitry@gutov.dev>
Sat, 16 Dec 2023 02:58:35 +0000 (04:58 +0200)
commit746507dc3b9f555ff6e8e6282ff03ac211752325
treeeace5cc403b0aeb9002d9bc47ef1a08c7a5c2bc6
parenta2c2ec548bb7fc03e1f050c2c784b65e9725fea1
ruby-syntax-methods-before-regexp: Drop this whitelist

* lisp/progmodes/ruby-mode.el (ruby-syntax-before-regexp-re):
Match only based on keywords and operators.
(ruby-syntax-methods-before-regexp): Delete.
(ruby-syntax-propertize): Use the new heuristic based on spaces
instead of checking for method names before (bug#67569).

* test/lisp/progmodes/ruby-mode-tests.el
(ruby-regexp-not-division-when-only-space-before):
Use non-whitelisted method name.

* test/lisp/progmodes/ruby-mode-resources/ruby.rb:
Adjust two examples.
lisp/progmodes/ruby-mode.el
test/lisp/progmodes/ruby-mode-resources/ruby.rb
test/lisp/progmodes/ruby-mode-tests.el