develooper Front page | perl.perl5.porters | Postings from January 2009

Re: [perl #59170] Typo: bad regex for #line directive in perlsyn.

Thread Previous
From:
Rafael Garcia-Suarez
Date:
January 6, 2009 02:55
Subject:
Re: [perl #59170] Typo: bad regex for #line directive in perlsyn.
Message ID:
b77c1dce0901060255l2c7b12a8o6c6e3aaeecf5609a@mail.gmail.com
2008/11/7 Steve Peters via RT <perlbug-followup@perl.org>:
> On Thu Sep 25 04:45:32 2008, rafael wrote:
>> 2008/9/21 via RT Elliot Shank <perlbug-followup@perl.org>:
>> > The documentation for the #line directive in perlsyn gives a regular
>>    expression for valid syntax.  This regex says that whitespace is
>>    required between the line number and the filename.  Empirical
>>    evidence says otherwise.  For example:
>> >
>> >    use 5.010;
>> >    #line 25foo
>> >    say __LINE__, q< >, __FILE__;
>> >
>> > does emit "25 foo".  Patch attached.
>>
>> I'm really tempted to fix toke.c:S_incline() instead. I don't think
>> there will be much breakage, right ?
>
> Famous last words?

No, no. Now done as change 26b6dc3ff01d5987ade8e7bb4d8844b01828ff83

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About