From 9150340b9bcbe305c2647a8d6f6f8e754769f3e7 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 21 Mar 2013 20:30:53 +0000 Subject: parse.y: refine warning message * parse.y (ambiguous_operator): refine warning message, since this warning is shown after literal too. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_syntax.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'test/ruby') diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb index bc29007359..823b64692c 100644 --- a/test/ruby/test_syntax.rb +++ b/test/ruby/test_syntax.rb @@ -111,6 +111,27 @@ class TestSyntax < Test::Unit::TestCase end end + def test_warn_balanced + warning = <