aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/progmodes/ruby-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el
index c96eccbfecb..b34143dea17 100644
--- a/lisp/progmodes/ruby-mode.el
+++ b/lisp/progmodes/ruby-mode.el
@@ -293,7 +293,7 @@ Also ignores spaces after parenthesis when 'space."
293 ;; Make sure it's not the end of a regexp. 293 ;; Make sure it's not the end of a regexp.
294 (not (eq (car (syntax-after (1- (point)))) 7))) 294 (not (eq (car (syntax-after (1- (point)))) 7)))
295 (and (memq (char-before) '(?\? ?=)) 295 (and (memq (char-before) '(?\? ?=))
296 (let ((tok (ruby-smie--backward-token))) 296 (let ((tok (save-excursion (ruby-smie--backward-token))))
297 (or (equal tok "?") 297 (or (equal tok "?")
298 (string-match "\\`\\s." tok)))) 298 (string-match "\\`\\s." tok))))
299 (save-excursion 299 (save-excursion