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".
MIME-Version: 1.0
X-Mailer: MIME-tools 5.426 (Entity 5.426)
Content-Type: text/plain
Charset: utf8
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 357
Download (untitled) / with headers
text/plain 357b
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 ')'
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-26835-1299015703-1704.37664-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 1071
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?
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-26840-1299016518-1623.37664-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 57
Confirming I can't replicate either, marking as resolved.


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.