Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the PPI CPAN distribution.

Report information
The Basics
Id: 5743
Status: resolved
Worked: 30 min
Priority: 0/
Queue: PPI

People
Owner: adamk [...] cpan.org
Requestors: claes [...] surfar.nu
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.805
Fixed in: (no value)



Subject: Tokenization of prototypes for anonymous subroutines doesn't work correctly
Download (untitled) / with headers
text/plain 323b
Hey, The following code my $a = sub ($$) {} should produce the following tokens for the part after = Whitespace, Bareword, Whitespace, SubPrototype, Whitespace, Structure, Structure instead it produces Whitespace, Bareword, Whitespace, Structure, Magic, Structure, Whitespace, Structure, Structure Cheers, Claes
Download (untitled) / with headers
text/plain 180b
Take a look at PPI/Token/Classes.pm line 118 and tell me how you think the rule needs to be changed... it's currently probably pretty wrong, and aimed at named "normal" functions.
Fixed in 0.811


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.