Skip to content

Commit 9a48049

Browse files
authored
Merge pull request mruby#6696 from khasinski/fix-required-kwarg-parsing
2 parents 7bc1c44 + 1e932dd commit 9a48049

File tree

2 files changed

+176
-168
lines changed

2 files changed

+176
-168
lines changed

mrbgems/mruby-compiler/core/parse.y

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4562,11 +4562,15 @@ f_arglist : f_arglist_paren
45624562

45634563
f_label : tIDENTIFIER tLABEL_TAG
45644564
{
4565+
$$ = $1;
45654566
local_nest(p);
4567+
p->lstate = EXPR_ARG; /* make newlines significant after label */
45664568
}
45674569
| tNUMPARAM tLABEL_TAG
45684570
{
4571+
$$ = intern_numparam($1);
45694572
local_nest(p);
4573+
p->lstate = EXPR_ARG; /* make newlines significant after label */
45704574
}
45714575
;
45724576

0 commit comments

Comments
 (0)