Commit 35ece233 authored by Dmitry Gutov's avatar Dmitry Gutov
Browse files

Refine the last change

parent 0ea1599d
......@@ -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))))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment