PPI
PPI copied to clipboard
When parsing an `open my $fh ...` function without parenthesis, PPI does not identify the `$fh` as a variable (`PPI::Statement::Variable`) but as a symbol instead (`PPI::Token::Symbol`). Example: ```perl use strict;...
When PPI::Tokenizer method all_tokens() finds an error, it sets $@ to a PPI::Exception which has its $err->message as another PPI::Exception. Is that meant to be so? It has the unhappy...
When a operator is preceded by a map block, it is does not show up as PPI::Token::QuoteLike::Readline in the tree, instead two separate PPI::Token::Operators for '' are created. Example: ```perl...
https://rt.cpan.org/Public/Bug/Display.html?id=75921 PPI 1.215 does not recognize a match against implicit $_ that follows map/grep if the match does not include 'm': ``` ppidump 'map { 0 } /z/' PPI::Document PPI::Statement...
`Use of uninitialized value $word in pattern match (m//) at /usr/share/perl5/vendor_perl/PPI/Tokenizer.pm line 836.` This is from running perlcritic; if you're unable to reproduce this I can whittle it down to...
The test suite is careful to 'use warnings', but none of the PPI modules that get installed enable warnings. Any insight into the reasoning and/or experience that lead to not...
Talking with @shadowcat-mst about Damian Conway's PPR he brought up the fact that there's a bunch of modules that are currently able to extend Perl's base set of syntax with...
There's lots of useful generic stuff in Perl::Critic::Utils, and various things (e.g. Perl::MinimumVersion) call into it to do its code parsing. I'd like to consider we take on this code...
I expected this test passed, but in fact, it failed. ```perl use 5.26.0; use PPI::Document; use Test::More; my $content = q( my $x = find('PPI::Token::Pod'); ok $pod, "find pod element";...