mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* parse.y (opt_bv_decl): allow newline at the end. [ruby-dev:45292]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d74ccf8fc1
commit
f3e1c29b24
2 changed files with 11 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
|||
Mon Feb 27 23:46:09 2012 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* parse.y (opt_bv_decl): allow newline at the end. [ruby-dev:45292]
|
||||
|
||||
Mon Feb 27 20:43:05 2012 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* io.c (rb_io_set_pos): add rdoc about textmode.
|
||||
|
|
11
parse.y
11
parse.y
|
@ -3727,13 +3727,16 @@ block_param_def : '|' opt_bv_decl '|'
|
|||
;
|
||||
|
||||
|
||||
opt_bv_decl : none
|
||||
| ';' bv_decls
|
||||
opt_bv_decl : opt_nl
|
||||
{
|
||||
$$ = 0;
|
||||
}
|
||||
| opt_nl ';' bv_decls opt_nl
|
||||
{
|
||||
/*%%%*/
|
||||
$$ = 0;
|
||||
/*%
|
||||
$$ = $2;
|
||||
$$ = $3;
|
||||
%*/
|
||||
}
|
||||
;
|
||||
|
@ -3788,7 +3791,7 @@ lambda : {
|
|||
}
|
||||
;
|
||||
|
||||
f_larglist : '(' f_args opt_bv_decl rparen
|
||||
f_larglist : '(' f_args opt_bv_decl ')'
|
||||
{
|
||||
/*%%%*/
|
||||
$$ = $2;
|
||||
|
|
Loading…
Add table
Reference in a new issue