ruby-changes:24688
From: nobu <ko1@a...>
Date: Mon, 20 Aug 2012 23:07:49 +0900 (JST)
Subject: [ruby-changes:24688] nobu:r36739 (trunk): parse.y: token name
nobu 2012-08-20 23:06:52 +0900 (Mon, 20 Aug 2012) New Revision: 36739 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36739 Log: parse.y: token name * parse.y: more descriptive token names in syntax error messages. Modified files: trunk/bootstraptest/test_syntax.rb Index: bootstraptest/test_syntax.rb =================================================================== --- bootstraptest/test_syntax.rb (revision 36738) +++ bootstraptest/test_syntax.rb (revision 36739) @@ -541,7 +541,7 @@ assert_syntax_error "Can't set variable $1", %q{0..$1=1}, '[ruby-dev:31118]' assert_valid_syntax %q{1.times{1+(1&&next)}}, '[ruby-dev:31119]' assert_valid_syntax %q{x=-1;loop{x+=1&&redo if (x+=1).zero?}}, '[ruby-dev:31119]' -assert_syntax_error %q{syntax error, unexpected $end}, %q{!}, '[ruby-dev:31243]' +assert_syntax_error %q{syntax error, unexpected end-of-input}, %q{!}, '[ruby-dev:31243]' assert_equal %q{[nil]}, %q{[()]}, '[ruby-dev:31252]' assert_equal %q{true}, %q{!_=()}, '[ruby-dev:31263]' assert_equal 'ok', %q{while true; redo; end if 1 == 2; :ok}, '[ruby-dev:31360]' -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/