aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-22 05:19:01 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-22 05:19:01 +0000
commitbf99f859419437c9f5826ada08cd7cdca03c7d7f (patch)
tree39b403730cc5574aef100096fc59815991975fbc /test
parent8c22a641d9094add9430e050a405c20d38e1c328 (diff)
downloadruby-bf99f859419437c9f5826ada08cd7cdca03c7d7f.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.rb1
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"]