c4a747a1c7841a0e8abe75732e814e33d000e901
[bpt/emacs.git] / test / indent / ruby.rb
1 # Don't mis-match "sub" at the end of words.
2 a = asub / aslb + bsub / bslb;
3
4 b = %Q{This is a "string"}
5 c = %w(foo
6 bar
7 baz)
8 d = %!hello!
9
10 # A "do" after a slash means that slash is not a division, but it doesn't imply
11 # it's a regexp-ender, since it can be a regexp-starter instead!
12 x = toto / foo; if /do bar/ then
13 toto = 1
14 end
15
16 # Some Cucumber code:
17 Given /toto/ do
18 print "hello"
19 end