diff options
author | Nicholas Clark <nick@ccl4.org> | 2021-09-16 09:19:25 +0000 |
---|---|---|
committer | Ricardo Signes <rjbs@semiotic.systems> | 2021-10-15 09:28:27 -0400 |
commit | ebb7bd1b0e2c6d7fb94fe2cec384474e18ffb4a1 (patch) | |
tree | 29e43eaf6d0a7a8b00421990fa92506d212a814b /perly.y | |
parent | b1ed63167c53cf3d3caefb49adc247668a47c12f (diff) | |
download | perl-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.y | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |