diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-07-07 03:20:53 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-07-07 03:20:53 +0000 |
commit | 3043170b14875ce53f3a951d665279b12c2c63a8 (patch) | |
tree | 5903ff25972c6d5399725ec7ad14fe25df9026f6 /parse.y | |
parent | 1ec4d9d3e47132a4eeacc1a45a9e0bf1159ab3c8 (diff) |
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -862,6 +862,14 @@ aref_args : none value_expr($4); $$ = arg_concat($1, $4); } + | assocs + { + $$ = NEW_LIST(NEW_HASH($1)); + } + | assocs ',' + { + $$ = NEW_LIST(NEW_HASH($1)); + } | tSTAR arg opt_nl { value_expr($2); @@ -3381,6 +3389,7 @@ yylex() tokadd(c); tokfix(); yylval.id = rb_intern(tok()); + /* xxx shouldn't check if valid option variable */ return tGVAR; case '&': /* $&: last match */ |