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: 27475
Status: resolved
Priority: 0/
Queue: PPI

People
Owner: Nobody in particular
Requestors: thaljef [...] cpan.org
Cc:
AdminCc:

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



Subject: PPI parses regex incorrectly
PPI parses this code... sub foo { return / Success /x ? 0 : 1 } as (whitespace elements removed)... PPI::Document PPI::Statement::Sub PPI::Token::Word 'sub' PPI::Token::Word 'foo' PPI::Structure::Block { ... } PPI::Statement::Break PPI::Token::Word 'return' PPI::Token::Operator '/' PPI::Token::Word 'Success' PPI::Token::Operator '/' PPI::Token::Operator 'x' PPI::Token::Operator '?' PPI::Token::Number '0' PPI::Token::Operator ':' PPI::Token::Number '1' but it should probably be... PPI::Document PPI::Statement::Sub PPI::Token::Word 'sub' PPI::Token::Word 'foo' PPI::Structure::Block { ... } PPI::Statement::Break PPI::Token::Word 'return' PPI::Token::Regexp::Match '/ Success /x' PPI::Token::Operator '?' PPI::Token::Number '0' PPI::Token::Operator ':' PPI::Token::Number '1'
Resolved, will appear in 1.216_01