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 | 950abe3995d64e96d387eb01f34ec146296b306f (patch) | |
| tree | 5903ff25972c6d5399725ec7ad14fe25df9026f6 /parse.y | |
| parent | 733953a72fcd8b3f4e38e6cb288205a4a8930517 (diff) | |
| download | ruby-950abe3995d64e96d387eb01f34ec146296b306f.tar.gz ruby-950abe3995d64e96d387eb01f34ec146296b306f.tar.xz ruby-950abe3995d64e96d387eb01f34ec146296b306f.zip | |
matz
git-svn-id: http://svn.ruby-lang.org/repos/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 */ |
