summaryrefslogtreecommitdiff
path: root/lisp/progmodes/ruby-mode.el
diff options
context:
space:
mode:
authorDmitry Gutov <dgutov@yandex.ru>2013-10-27 07:25:03 +0400
committerDmitry Gutov <dgutov@yandex.ru>2013-10-27 07:25:03 +0400
commitc8c605ac9ced55d55e952255787c8a6b71bf585a (patch)
tree4a472c7516910b5bb80070ecf025ce10f1d5ac09 /lisp/progmodes/ruby-mode.el
parentca7e59d46cd7c030a4b50234c0257156ce08e7e3 (diff)
downloademacs-c8c605ac9ced55d55e952255787c8a6b71bf585a.tar.gz
emacs-c8c605ac9ced55d55e952255787c8a6b71bf585a.tar.bz2
emacs-c8c605ac9ced55d55e952255787c8a6b71bf585a.zip
* lisp/progmodes/ruby-mode.el (ruby-smie--bosp): Anything that goes
after `=' is probably a new expression.
Diffstat (limited to 'lisp/progmodes/ruby-mode.el')
-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 b85385a7428..441f166396e 100644
--- a/lisp/progmodes/ruby-mode.el
+++ b/lisp/progmodes/ruby-mode.el
@@ -334,7 +334,7 @@ explicitly declared in magic comment."
(defun ruby-smie--bosp ()
(save-excursion (skip-chars-backward " \t")
- (or (bolp) (eq (char-before) ?\;))))
+ (or (bolp) (memq (char-before) '(?\; ?=)))))
(defun ruby-smie--implicit-semi-p ()
(save-excursion