]> git.eshelyaron.com Git - emacs.git/commit
ruby-mode: Better detect regexp vs division (bug#67569)
authorDmitry Gutov <dmitry@gutov.dev>
Sat, 9 Dec 2023 17:04:55 +0000 (19:04 +0200)
committerDmitry Gutov <dmitry@gutov.dev>
Sat, 9 Dec 2023 17:04:55 +0000 (19:04 +0200)
commit91f2ade57bb72e9bb4a44da44e5dc69adb3c7584
treefed4bf06cedd388dc2df6de198b9f2018d9be5d6
parent0f361cc985d35202556233f04235df1c885f532e
ruby-mode: Better detect regexp vs division (bug#67569)

* lisp/progmodes/ruby-mode.el (ruby-syntax-before-regexp-re):
Add grouping around methods from the whitelist.
(ruby-syntax-propertize): Also look for spaces around the slash.
lisp/progmodes/ruby-mode.el
test/lisp/progmodes/ruby-mode-tests.el