diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-22 05:19:01 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-22 05:19:01 +0000 |
commit | bf99f859419437c9f5826ada08cd7cdca03c7d7f (patch) | |
tree | 39b403730cc5574aef100096fc59815991975fbc /test/ruby/test_rubyoptions.rb | |
parent | 8c22a641d9094add9430e050a405c20d38e1c328 (diff) |
parse.y: lambda indentation check
* parse.y (lambda_body, parser_yylex): warn mismatched indentation
of lambda block.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 27520b6cb3..6e6fe4bd3b 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -395,6 +395,7 @@ class TestRubyOptions < Test::Unit::TestCase [ "begin", "if false", "for _ in []", "while false", "def foo", "class X", "module M", + ["-> do", "end"], ["-> {", "}"], ].each do |b, e = 'end'| src = ["#{b}\n", " #{e}\n"] |