ruby-changes:8933
From: nobu <ko1@a...>
Date: Wed, 3 Dec 2008 22:54:57 +0900 (JST)
Subject: [ruby-changes:8933] Ruby:r20469 (trunk): * parse.y (expr): keyword_not can continue across newline.
nobu 2008-12-03 22:54:42 +0900 (Wed, 03 Dec 2008) New Revision: 20469 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20469 Log: * parse.y (expr): keyword_not can continue across newline. [ruby-core:20252] Modified files: trunk/ChangeLog trunk/parse.y Index: ChangeLog =================================================================== --- ChangeLog (revision 20468) +++ ChangeLog (revision 20469) @@ -1,3 +1,8 @@ +Wed Dec 3 22:54:39 2008 Nobuyoshi Nakada <nobu@r...> + + * parse.y (expr): keyword_not can continue across newline. + [ruby-core:20252] + Wed Dec 3 22:40:59 2008 Nobuyoshi Nakada <nobu@r...> * iseq.c (simple_default_value): returns simplest assignment only. Index: parse.y =================================================================== --- parse.y (revision 20468) +++ parse.y (revision 20469) @@ -1174,12 +1174,12 @@ $$ = dispatch3(binary, $1, ripper_intern("or"), $3); %*/ } - | keyword_not expr + | keyword_not opt_nl expr { /*%%%*/ - $$ = call_uni_op(cond($2), '!'); + $$ = call_uni_op(cond($3), '!'); /*% - $$ = dispatch2(unary, ripper_intern("not"), $2); + $$ = dispatch2(unary, ripper_intern("not"), $3); %*/ } | '!' command_call -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/