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?