p4raw-id: //depot/perl@31201
I32 nexttoke;
#endif
+ COP *saved_curcop; /* the previous PL_curcop */
+
} yy_parser;
/* on scope exit, free this parser and restore any outer one */
SAVEPARSER(parser);
+ parser->saved_curcop = PL_curcop;
/* initialise lexer state */
- SAVECOPLINE(PL_curcop);
-
#ifdef PERL_MAD
parser->curforce = -1;
#else
void
Perl_parser_free(pTHX_ const yy_parser *parser)
{
+ PL_curcop = parser->saved_curcop;
SvREFCNT_dec(parser->linestr);
if (parser->rsfp == PerlIO_stdin())