From 8b678bcaa10ae367d9d937458c340996e4a21b8a Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 10 Oct 2001 08:21:13 +0000 Subject: * file.c (rb_stat_clone): should copy internal data too. * numeric.c (num_clone): Numeric should not be copied by clone. * object.c (rb_obj_clone): should check immediate values. * parse.y (command): `yield' should take command_args. * parse.y (parse_quotedwords): %w(...) is not a string. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index e3d0eb814..d7ed5b5f5 100644 --- a/parse.y +++ b/parse.y @@ -208,7 +208,7 @@ static void top_local_setup(); %token tIDENTIFIER tFID tGVAR tIVAR tCONSTANT tCVAR %token tINTEGER tFLOAT tSTRING tXSTRING tREGEXP -%token tDSTRING tDXSTRING tDREGEXP tNTH_REF tBACK_REF +%token tDSTRING tDXSTRING tDREGEXP tNTH_REF tBACK_REF tQWORDS %type singleton string %type literal numeric @@ -510,7 +510,7 @@ command : operation command_args $$ = new_super($2); fixpos($$, $2); } - | kYIELD call_args + | kYIELD command_args { $$ = NEW_YIELD(ret_args($2)); fixpos($$, $2); @@ -1163,6 +1163,7 @@ primary : literal { $$ = NEW_XSTR($1); } + | tQWORDS | tDXSTRING | tDREGEXP | var_ref @@ -2742,7 +2743,7 @@ parse_quotedwords(term, paren) if (!qwords) qwords = NEW_ZARRAY(); yylval.node = qwords; lex_state = EXPR_END; - return tDSTRING; + return tQWORDS; } static int -- cgit