summaryrefslogtreecommitdiff
path: root/test/indent/ruby.rb
blob: c4a747a1c7841a0e8abe75732e814e33d000e901 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Don't mis-match "sub" at the end of words.
a = asub / aslb + bsub / bslb;

b = %Q{This is a "string"}
c = %w(foo
 bar
 baz)
d = %!hello!

# A "do" after a slash means that slash is not a division, but it doesn't imply
# it's a regexp-ender, since it can be a regexp-starter instead!
x = toto / foo; if /do bar/ then
                  toto = 1
                end

# Some Cucumber code:
Given /toto/ do
  print "hello"
end