case foo; when bar; end ^^^^^^^^^^^^^
while foo; bar end ^^^^^^^^^^^^^^^^^^
bar while foo ^^^^^^^^^^^^^
In a percent array, certain whitespace can be preceeded with a backslash, causing the following characters to be part of the previous element.
a and b ^^^^^^^
begin end ^^^^^^^^^
A block on a keyword or method call.
break ^^^^^ break foo ^^^^^^^^^
foo ^^^ foo.bar ^^^^^^^ foo.bar() {} ^^^^^^^^^^^^
case foo; when bar; end ^^^^^^^^^^^^^^^^^^^^^^^
class Foo; end ^^^^^^^^^^^^^^
def foo; end ^^^^^^^^^^^^ def self.foo; end ^^^^^^^^^^^^^^^^^
defined? a ^^^^^^^^^^ defined?(a) ^^^^^^^^^^^
if foo then bar else baz end ^^^^^^^^^^^^
begin; foo; ensure; bar; end ^^^^^^^^^^^^
for foo in bar do end ^^^^^^^^^^^^^^^^^^^^^
if foo then bar end ^^^^^^^^^^^^^^^^^^^ bar if foo ^^^^^^^^^^ foo ? bar : baz ^^^^^^^^^^^^^^^
case foo; in bar; end ^^^^^^^^^^^^^^^^^^^^^