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
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
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