* lisp/progmodes/ruby-mode.el (ruby-indent-beg-re): Only allow "class",
[bpt/emacs.git] / test / automated / ruby-mode-tests.el
index 8da0041..28c2a2a 100644 (file)
@@ -202,6 +202,19 @@ VALUES-PLIST is a list with alternating index and value elements."
    |  end
    |"))
 
+(ert-deftest ruby-indent-after-block-in-continued-expression ()
+  (ruby-should-indent-buffer
+   "var =
+   |  begin
+   |    val
+   |  end
+   |statement"
+   "var =
+   |begin
+   |val
+   |end
+   |statement"))
+
 (ert-deftest ruby-move-to-block-stops-at-indentation ()
   (with-temp-buffer
     (insert "def f\nend")