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 | 116aff7f2e98780382d0b660b5e058bc591d3051 (patch) | |
tree | 39b403730cc5574aef100096fc59815991975fbc /test | |
parent | dc4d735867e783427ec5bd5a6d3fc05c1e20c659 (diff) | |
download | ruby-116aff7f2e98780382d0b660b5e058bc591d3051.tar.gz |
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')
-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"] |