aboutsummaryrefslogtreecommitdiffstats
path: root/test/indent/ruby.rb
diff options
context:
space:
mode:
authorDmitry Gutov <[email protected]>2013-10-27 07:25:03 +0400
committerDmitry Gutov <[email protected]>2013-10-27 07:25:03 +0400
commitc8c605ac9ced55d55e952255787c8a6b71bf585a (patch)
tree4a472c7516910b5bb80070ecf025ce10f1d5ac09 /test/indent/ruby.rb
parentca7e59d46cd7c030a4b50234c0257156ce08e7e3 (diff)
* lisp/progmodes/ruby-mode.el (ruby-smie--bosp): Anything that goes
after `=' is probably a new expression.
Diffstat (limited to 'test/indent/ruby.rb')
-rw-r--r--test/indent/ruby.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/indent/ruby.rb b/test/indent/ruby.rb
index b4173b69bc..633b2991d5 100644
--- a/test/indent/ruby.rb
+++ b/test/indent/ruby.rb
@@ -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|