diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-04-28 18:17:07 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-04-28 18:17:07 +0000 |
commit | df0deb90068dea6e06bd6632928a2926975901ce (patch) | |
tree | d843359b2d5a6d0af22ce1f6f61d0ea3f16688d4 /toke.c | |
parent | d5a71f3055c3a1145f32dafabd5c3bba8ef27f4d (diff) | |
download | perl-df0deb90068dea6e06bd6632928a2926975901ce.tar.gz |
fix line renumbering bug in C<eval qq[#line 10 "X"\nwarn]>
p4raw-id: //depot/perl@5999
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -2656,6 +2656,11 @@ Perl_yylex(pTHX) case '#': case '\n': if (PL_lex_state != LEX_NORMAL || (PL_in_eval && !PL_rsfp)) { + if (*s == '#' && s == PL_linestart && PL_in_eval && !PL_rsfp) { + /* handle eval qq[#line 1 "foo"\n ...] */ + CopLINE_dec(PL_curcop); + incline(s); + } d = PL_bufend; while (s < d && *s != '\n') s++; |