Subject: | Devel::Declare doesn't handle unicode lexemes |
Perl itself allows non-ascii sub and var names when utf8 pragma in use.
I want to add new non-ascii keyword using Devel::Declare. But
Devel::Declare ignores it.
Example (parser() not called):
use utf8;
package PerlSyntax::Ru;
use Devel::Declare;
use strict;
sub import {
my $caller = caller;
Devel::Declare->setup_for(
$caller,
{для => {const => \&parser}}
);
}
sub parser {
warn "parser() called";
}
package main;
BEGIN {
PerlSyntax::Ru->import();
}
для (1..10) {
print "ok\n";
}