[Padre-dev] Perl 6 highlighting issue
Gabor Szabo
szabgab at gmail.com
Fri Jan 23 11:49:55 PST 2009
Hi Azawai,
I was trying to open the p6w/URI.pm file of November (the wiki) using
v0.025 of the Perl6 plugin (on Padre 0.25)
and it could not color correctly lines 21-25
Here is the beginning of the file though it has issues later on as
well so you might want to get the source code
of all November and look around using Padre to see if there other issues.
regards
Gabor
class URI;
# RAKUDO: Match object does not do assignment properly :(
#my Match $.parts; dies in init with 'Type mismatch in assignment';
# workaround:
has $.uri;
has @.chunks;
method init ($str) {
use URI::Grammar;
# clear string before parsing
my $c_str = $str;
$c_str .= subst(/^ \s* ['<' | '"'] /, '');
$c_str .= subst(/ ['>' | '"'] \s* $/, '');
URI::Grammar.parse($c_str);
unless $/ { die "Could not parse URI: $str" }
$!uri = $/;
@!chunks = $/<path><chunk> // ('');
}
method scheme {
my $s = $.uri<scheme> // '';
# RAKUDO: return 1 if use ~ below die because can`t do lc on Math after
return ~$s.lc;
}
More information about the Padre-dev
mailing list