1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 12:21:25 -08:00

Refine the last change

This commit is contained in:
Dmitry Gutov 2013-10-08 02:03:16 +03:00
parent 0ea1599d34
commit 35ece233a8

View file

@ -293,7 +293,7 @@ Also ignores spaces after parenthesis when 'space."
;; Make sure it's not the end of a regexp.
(not (eq (car (syntax-after (1- (point)))) 7)))
(and (memq (char-before) '(?\? ?=))
(let ((tok (ruby-smie--backward-token)))
(let ((tok (save-excursion (ruby-smie--backward-token))))
(or (equal tok "?")
(string-match "\\`\\s." tok))))
(save-excursion