diff options
author | Father Chrysostomos <sprout@cpan.org> | 2014-12-05 21:41:30 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2014-12-06 05:33:30 -0800 |
commit | 8b9fb2f9f022bfdeca1048b3797b844142826a9c (patch) | |
tree | 7fe0dc68f79b792f3e4f9a136ae2080a7f6c8128 /perly.h | |
parent | 6436970cde5c8aac6df90c1710576d85946042e4 (diff) | |
download | perl-8b9fb2f9f022bfdeca1048b3797b844142826a9c.tar.gz |
Deparse formats in the right spot
Formats need the same logic applied in 34b54951568, to avoid this:
Input:
{
my $x;
format STDOUT =
@
$x
.
}
__END__
$ pbpaste|./perl -Ilib -MO=Deparse
{
my $x;
}
format STDOUT =
@
$x
.
__DATA__
- syntax OK
That $x in the format is now global, not lexical.
Also, we need to make sure the sequence numbers are correct. The
statement after the format stopped having a higher sequence number
than CvOUTSIDE_SEQ(format) in 8635e3c238f, because the ‘pending’
sequence number set aside for the nextstate op created just after com-
pile-time block exit (which nextstate op comes before the block) was
not actually being used by newFORM (unlike newATTRSUB), so the follow-
ing statement was using that number.
Diffstat (limited to 'perly.h')
-rw-r--r-- | perly.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -256,6 +256,6 @@ typedef union YYSTYPE /* Generated from: - * 7c925861de53b976298e1b6e79a731de2d11247fd3db73f423cba0fd8c2e1afe perly.y + * 483e652a7d8fe19f0ca9b30539b01d530f0fa872a8b4cfab025c589aa581d7d2 perly.y * d1d4df7b8e30ac9dede664af9179e6e5e7ddc7f2ad9c4eff9e2e5b32c9e16a6e regen_perly.pl * ex: set ro: */ |