summaryrefslogtreecommitdiff
path: root/perly.y
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2021-09-16 09:19:25 +0000
committerRicardo Signes <rjbs@semiotic.systems>2021-10-15 09:28:27 -0400
commitebb7bd1b0e2c6d7fb94fe2cec384474e18ffb4a1 (patch)
tree29e43eaf6d0a7a8b00421990fa92506d212a814b /perly.y
parentb1ed63167c53cf3d3caefb49adc247668a47c12f (diff)
downloadperl-ebb7bd1b0e2c6d7fb94fe2cec384474e18ffb4a1.tar.gz
for my ($foo,,, $bar) { ... } should parse as ($foo, $bar)
Multiple commas between the lexicals in the list shouldn't change the parsing.
Diffstat (limited to 'perly.y')
-rw-r--r--perly.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/perly.y b/perly.y
index 2e2935c60e..068df58b32 100644
--- a/perly.y
+++ b/perly.y
@@ -1384,7 +1384,7 @@ my_scalar: scalar
/* A list of scalars for "for my ($foo, $bar) (@baz)" */
list_of_scalars: list_of_scalars[list] PERLY_COMMA
- { parser->in_my = 0; $$ = $list; }
+ { $$ = $list; }
| list_of_scalars[list] PERLY_COMMA scalar
{
$$ = op_append_elem(OP_LIST, $list, $scalar);