summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDmitry Gutov <dgutov@yandex.ru>2013-11-09 01:59:56 +0200
committerDmitry Gutov <dgutov@yandex.ru>2013-11-09 01:59:56 +0200
commit1629a329975b1c1e49249dd1462ce56a8840b0be (patch)
tree6d1270eafa675267348ab78a652ca5f70f518311 /test
parentad16897ceb05aefe3e6d63a6c9c5366ad0d75961 (diff)
downloademacs-1629a329975b1c1e49249dd1462ce56a8840b0be.tar.gz
* lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p):
Not after "||". (ruby-smie-rules): Indent non-hanging "begin" blocks as part of their parent.
Diffstat (limited to 'test')
-rw-r--r--test/indent/ruby.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/indent/ruby.rb b/test/indent/ruby.rb
index 0c432b7ca20..1d2eb08db94 100644
--- a/test/indent/ruby.rb
+++ b/test/indent/ruby.rb
@@ -285,9 +285,14 @@ bar 1 do
end
end
-# Failing with SMIE:
-
foo ||
begin
bar
end
+
+def qux
+ foo ||= begin
+ bar
+ tee
+ end
+end