Subject: | PPI fails to parse utf8 variable names |
Date: | Thu, 6 Mar 2014 09:34:02 -0500 |
To: | bug-PPI [...] rt.cpan.org |
From: | Dave Jacoby <jacoby.david [...] gmail.com> |
Wrote code that uses the pi symbol rather than 'pi' as a variable name,
mostly to see if Perl and my editors could handle Unicode. It worked.
Available here: https://gist.github.com/jacoby/9390819
More recently wrote code to run Perl::Critic on a directory tree, and found
that Perl::Critic died on that program with this error:
Can't parse code: Fatal error... regex failed to match in 'ÃÂ = 'pi' ;
' when expected at /usr/share/perl5/PPI/Token/Word.pm line 416.
If Perl can parse utf8, Perl Critic should be able to criticize utf8 and
PPI should be able to parse utf8.
--
David Jacoby jacoby.david@gmail.com