1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* parse.y (opt_block_param): command can start just after block param

definition.  [ruby-list:44479]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-02-29 06:12:46 +00:00
parent b4be9b0bb1
commit d14c3eb4b8
4 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Fri Feb 29 15:12:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (opt_block_param): command can start just after block param
definition. [ruby-list:44479]
Fri Feb 29 03:22:19 2008 NARUSE, Yui <naruse@ruby-lang.org>
* test/ruby/test_time.rb (test_readers): fix typo.

View file

@ -44,8 +44,6 @@ assert_equal 'ok', %q{
end
}, '[ruby-core:14537]'
assert_valid_syntax('1.times {|i|print (42),1;}', '[ruby-list:44479]')
assert_normal_exit %q{
"abc".gsub(/./, "a" => "z")
}

View file

@ -765,3 +765,5 @@ assert_equal "1\n2\n", %q{
next p(i)
end
}
assert_valid_syntax('1.times {|i|print (42),1;}', '[ruby-list:44479]')

View file

@ -3197,6 +3197,9 @@ block_param : f_arg ',' f_rest_arg opt_f_block_arg
opt_block_param : none
| block_param_def
{
command_start = Qtrue;
}
;
block_param_def : '|' opt_bv_decl '|'