* parse.y (primary): should not be NULL. [ruby-core:03098]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
77411b3577
commit
d1ffc6ae53
@ -1,3 +1,7 @@
|
|||||||
|
Wed Jun 30 11:38:51 2004 Elven <elven@elven.de>
|
||||||
|
|
||||||
|
* parse.y (primary): should not be NULL. [ruby-core:03098]
|
||||||
|
|
||||||
Wed Jun 30 02:41:10 2004 why the lucky stiff <why@ruby-lang.org>
|
Wed Jun 30 02:41:10 2004 why the lucky stiff <why@ruby-lang.org>
|
||||||
|
|
||||||
* ext/syck/rubyext.c (syck_emitter_new): set buffer after
|
* ext/syck/rubyext.c (syck_emitter_new): set buffer after
|
||||||
|
5
parse.y
5
parse.y
@ -1448,7 +1448,10 @@ primary : literal
|
|||||||
bodystmt
|
bodystmt
|
||||||
kEND
|
kEND
|
||||||
{
|
{
|
||||||
$$ = NEW_BEGIN($3);
|
if ($3 == NULL)
|
||||||
|
$$ = NEW_NIL();
|
||||||
|
else
|
||||||
|
$$ = NEW_BEGIN($3);
|
||||||
nd_set_line($$, $<num>1);
|
nd_set_line($$, $<num>1);
|
||||||
}
|
}
|
||||||
| tLPAREN_ARG expr {lex_state = EXPR_ENDARG;} rparen
|
| tLPAREN_ARG expr {lex_state = EXPR_ENDARG;} rparen
|
||||||
|
Loading…
x
Reference in New Issue
Block a user