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

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

Bug Information
Severity: (no value)
Broken in: 1.203
Fixed in: (no value)



Subject: Misparse: Calls to a method named "sub".
Expressions involving the call of a method named 'sub' appear to confuse the parser when analyzing the structure of subroutine calls. Minimal example: $x->sub(bar()) PPI::Document PPI::Statement PPI::Token::Symbol '$x' PPI::Token::Operator '->' PPI::Token::Word 'sub' PPI::Token::Prototype '(bar()' PPI::Statement::UnmatchedBrace PPI::Token::Structure ')'
On Mon Jul 14 01:11:30 2008, THALJEF wrote: Show quoted text
> Expressions involving the call of a method named 'sub' appear to confuse > the parser when analyzing the structure of subroutine calls. > > Minimal example: $x->sub(bar()) > > PPI::Document > PPI::Statement > PPI::Token::Symbol '$x' > PPI::Token::Operator '->' > PPI::Token::Word 'sub' > PPI::Token::Prototype '(bar()' > PPI::Statement::UnmatchedBrace > PPI::Token::Structure ')'
This may be fixed. At least, with PPI 1.215 the example parses as PPI::Document PPI::Statement [ 1, 1, 1 ] PPI::Token::Symbol '$x' [ 1, 3, 3 ] PPI::Token::Operator '->' [ 1, 5, 5 ] PPI::Token::Word 'sub' PPI::Structure::List ( ... ) PPI::Statement::Expression [ 1, 9, 9 ] PPI::Token::Word 'bar' PPI::Structure::List ( ... ) I seem to vaguely remember mucking with this recently, but if there's a PPI ticket related to my work, I can't identify it. Jeff? Adam?
Confirming I can't replicate either, marking as resolved.