From 116aff7f2e98780382d0b660b5e058bc591d3051 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 22 Mar 2016 05:19:01 +0000 Subject: 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 --- test/ruby/test_rubyoptions.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/ruby/test_rubyoptions.rb') 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"] -- cgit v1.2.3