aboutsummaryrefslogtreecommitdiffstats
path: root/test/indent/ruby.rb
diff options
context:
space:
mode:
authorJoakim Verona2012-05-21 00:37:29 +0200
committerJoakim Verona2012-05-21 00:37:29 +0200
commit74f082445c1dd0c92d5bb187db0d50287e3a7bae (patch)
tree48e3d8fd9df3876665654eab9bcf96ec492a31e9 /test/indent/ruby.rb
parent52862ad482e030e4d54cd7d6e250d76e59ee0554 (diff)
parent1b170bc63c2f3a3fbe6ba6996d5a015e82634909 (diff)
downloademacs-74f082445c1dd0c92d5bb187db0d50287e3a7bae.tar.gz
emacs-74f082445c1dd0c92d5bb187db0d50287e3a7bae.zip
upstream, fix conflicts
Diffstat (limited to 'test/indent/ruby.rb')
-rw-r--r--test/indent/ruby.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/indent/ruby.rb b/test/indent/ruby.rb
new file mode 100644
index 00000000000..c4a747a1c78
--- /dev/null
+++ b/test/indent/ruby.rb
@@ -0,0 +1,19 @@
1# Don't mis-match "sub" at the end of words.
2a = asub / aslb + bsub / bslb;
3
4b = %Q{This is a "string"}
5c = %w(foo
6 bar
7 baz)
8d = %!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!
12x = toto / foo; if /do bar/ then
13 toto = 1
14 end
15
16# Some Cucumber code:
17Given /toto/ do
18 print "hello"
19end