diff options
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -3672,6 +3672,14 @@ block_param : f_arg ',' f_block_optarg ',' f_rest_arg ',' f_block_kwarg f_kwrest $$ = params_new(Qnil, Qnil, Qnil, Qnil, $1, Qnil, escape_Qundef($2)); %*/ } + | tPOW tIDENTIFIER opt_f_block_arg + { + /*%%%*/ + $$ = new_args(0, 0, 0, 0, 0, $2, $3); + /*% + $$ = params_new(Qnil, Qnil, Qnil, Qnil, Qnil, $2, escape_Qundef($3)); + %*/ + } | f_block_arg { /*%%%*/ @@ -4994,6 +5002,14 @@ f_args : f_arg ',' f_optarg ',' f_rest_arg ',' f_kwarg f_kwrest opt_f_block_arg $$ = params_new(Qnil, Qnil, Qnil, Qnil, $1, Qnil, escape_Qundef($2)); %*/ } + | tPOW tIDENTIFIER opt_f_block_arg + { + /*%%%*/ + $$ = new_args(0, 0, 0, 0, 0, $2, $3); + /*% + $$ = params_new(Qnil, Qnil, Qnil, Qnil, Qnil, $2, escape_Qundef($3)); + %*/ + } | f_block_arg { /*%%%*/ |