summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y16
1 files changed, 12 insertions, 4 deletions
diff --git a/parse.y b/parse.y
index 57ccfc02d6..b1ba220ccb 100644
--- a/parse.y
+++ b/parse.y
@@ -2414,6 +2414,18 @@ opt_paren_args : none
opt_call_args : none
| call_args
+ | args ','
+ {
+ $$ = $1;
+ }
+ | args ',' assocs ','
+ {
+ /*%%%*/
+ $$ = arg_append($1, NEW_HASH($3));
+ /*%
+ $$ = arg_add_assocs($1, $3);
+ %*/
+ }
;
call_args : command
@@ -2487,10 +2499,6 @@ opt_block_arg : ',' block_arg
{
$$ = $2;
}
- | ','
- {
- $$ = 0;
- }
| none
{
$$ = 0;