ruby-changes:22786
From: matz <ko1@a...>
Date: Mon, 27 Feb 2012 23:47:20 +0900 (JST)
Subject: [ruby-changes:22786] matz:r34835 (trunk): * parse.y (opt_bv_decl): allow newline at the end.
matz 2012-02-27 23:47:02 +0900 (Mon, 27 Feb 2012) New Revision: 34835 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34835 Log: * parse.y (opt_bv_decl): allow newline at the end. [ruby-dev:45292] Modified files: trunk/ChangeLog trunk/parse.y Index: ChangeLog =================================================================== --- ChangeLog (revision 34834) +++ ChangeLog (revision 34835) @@ -1,3 +1,7 @@ +Mon Feb 27 23:46:09 2012 Yukihiro Matsumoto <matz@r...> + + * parse.y (opt_bv_decl): allow newline at the end. [ruby-dev:45292] + Mon Feb 27 20:43:05 2012 NAKAMURA Usaku <usa@r...> * io.c (rb_io_set_pos): add rdoc about textmode. Index: parse.y =================================================================== --- parse.y (revision 34834) +++ parse.y (revision 34835) @@ -3727,13 +3727,16 @@ ; -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 @@ } ; -f_larglist : '(' f_args opt_bv_decl rparen +f_larglist : '(' f_args opt_bv_decl ')' { /*%%%*/ $$ = $2; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/