diff options
Diffstat (limited to 'test/indent/ruby.rb')
| -rw-r--r-- | test/indent/ruby.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/indent/ruby.rb b/test/indent/ruby.rb index 90c6dcdc65c..853f4dbf992 100644 --- a/test/indent/ruby.rb +++ b/test/indent/ruby.rb | |||
| @@ -21,6 +21,11 @@ a = asub / aslb + bsub / bslb; | |||
| 21 | # Highlight the regexp after "if". | 21 | # Highlight the regexp after "if". |
| 22 | x = toto / foo if /do bar/ =~ "dobar" | 22 | x = toto / foo if /do bar/ =~ "dobar" |
| 23 | 23 | ||
| 24 | # Multiline regexp. | ||
| 25 | /bars | ||
| 26 | tees # toots | ||
| 27 | nfoos/ | ||
| 28 | |||
| 24 | def test1(arg) | 29 | def test1(arg) |
| 25 | puts "hello" | 30 | puts "hello" |
| 26 | end | 31 | end |
| @@ -47,6 +52,8 @@ def test2 (arg) | |||
| 47 | case a | 52 | case a |
| 48 | when "a" | 53 | when "a" |
| 49 | 6 | 54 | 6 |
| 55 | # Support for this syntax was removed in Ruby 1.9, so we | ||
| 56 | # probably don't need to handle it either. | ||
| 50 | # when "b" : | 57 | # when "b" : |
| 51 | # 7 | 58 | # 7 |
| 52 | # when "c" : 2 | 59 | # when "c" : 2 |