summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-10-10 08:23:47 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-10-10 08:23:47 +0000
commit1f4b9e3ff6195ac857d307324e9f6676a4e5b934 (patch)
treef025d66144d85cfb5ed54ea0cdf7abb7e7406ec9 /parse.y
parentc985c105711174c9da04be81be428b34fa8fcff5 (diff)
* parse.y (parse_quotedwords): %w(...) is not a string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y5
1 files changed, 3 insertions, 2 deletions
diff --git a/parse.y b/parse.y
index c416ad08d8..b6ee1492d1 100644
--- a/parse.y
+++ b/parse.y
@@ -194,7 +194,7 @@ static void top_local_setup();
%token <id> tIDENTIFIER tFID tGVAR tIVAR tCONSTANT tCVAR
%token <val> tINTEGER tFLOAT tSTRING tXSTRING tREGEXP
-%token <node> tDSTRING tDXSTRING tDREGEXP tNTH_REF tBACK_REF
+%token <node> tDSTRING tDXSTRING tDREGEXP tNTH_REF tBACK_REF tQWORDS
%type <node> singleton string
%type <val> literal numeric
@@ -1076,6 +1076,7 @@ primary : literal
{
$$ = NEW_XSTR($1);
}
+ | tQWORDS
| tDXSTRING
| tDREGEXP
| var_ref
@@ -2654,7 +2655,7 @@ parse_quotedwords(term, paren)
if (!qwords) qwords = NEW_ZARRAY();
yylval.node = qwords;
lex_state = EXPR_END;
- return tDSTRING;
+ return tQWORDS;
}
static int