aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y20
1 files changed, 20 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index 915db67631..62782709f8 100644
--- a/parse.y
+++ b/parse.y
@@ -4613,6 +4613,16 @@ f_kw : tLABEL arg_value
$$ = rb_assoc_new($$, $2);
%*/
}
+ | tLABEL
+ {
+ arg_var(formal_argument(get_id($1)));
+ $$ = assignable($1, (NODE *)-1);
+ /*%%%*/
+ $$ = NEW_KW_ARG(0, $$);
+ /*%
+ $$ = rb_assoc_new($$, 0);
+ %*/
+ }
;
f_block_kw : tLABEL primary_value
@@ -4625,6 +4635,16 @@ f_block_kw : tLABEL primary_value
$$ = rb_assoc_new($$, $2);
%*/
}
+ | tLABEL
+ {
+ arg_var(formal_argument(get_id($1)));
+ $$ = assignable($1, (NODE *)-1);
+ /*%%%*/
+ $$ = NEW_KW_ARG(0, $$);
+ /*%
+ $$ = rb_assoc_new($$, 0);
+ %*/
+ }
;
f_block_kwarg : f_block_kw