aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y16
1 files changed, 16 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index d5f7852156..579da3a391 100644
--- a/parse.y
+++ b/parse.y
@@ -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
{
/*%%%*/