]> code.delx.au - gnu-emacs/blobdiff - test/manual/indent/ruby.rb
Merge from origin/emacs-25
[gnu-emacs] / test / manual / indent / ruby.rb
index dfd1c75a679679520ee0efc6fec7ace562c44c45..585263d02a6c713ff076079947d21b3f20ae43b4 100644 (file)
@@ -168,6 +168,15 @@ if x == :!=
   something
 end
 
+qux :+,
+    bar,
+    :[]=,
+    bar,
+    :a
+
+b = $:
+c = ??
+
 # Example from http://www.ruby-doc.org/docs/ProgrammingRuby/html/language.html
 d = 4 + 5 +      # no '\' needed
     6 + 7
@@ -194,6 +203,9 @@ class C
     self.end
     D.new.class
   end
+
+  def begin
+  end
 end
 
 a = foo(j, k) -
@@ -223,6 +235,9 @@ z = {
 foo if
   bar
 
+fail "stuff" \
+  unless all_fine?
+
 if foo?
   bar
 end