Commit c8c605ac authored by Dmitry Gutov's avatar Dmitry Gutov
Browse files

* lisp/progmodes/ruby-mode.el (ruby-smie--bosp): Anything that goes

after `=' is probably a new expression.
parent ca7e59d4
2013-10-27 Dmitry Gutov <dgutov@yandex.ru>
* progmodes/ruby-mode.el (ruby-smie--bosp): Anything that goes
after `=' is probably a new expression.
2013-10-27 Rüdiger Sonderfeld <ruediger@c-plusplus.de>
* man.el (man-imenu-title): New option.
......
......@@ -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
......
......@@ -220,6 +220,11 @@ def bar
.baz
end
# http://stackoverflow.com/questions/17786563/emacs-ruby-mode-if-expressions-indentation
tee = if foo
bar
end
# Examples below still fail with `ruby-use-smie' on:
foo = [1, 2, 3].map do |i|
......
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