Add a Raku/Perl 6 lexer
This is an initial work deriving from current Rouge::Lexer::Perl, and using keyword data from https://docs.perl6.org and https://github.com/perl6/perl6-mode.
In all likelihood though, this might just derive directly from Rouge::Lexer::RegexLexer instead and implement its own states soon in subsequent commits, considering there's a lot of syntax changes.
This would close #390
I took at look at the Pygments implementation and might try to crib a few bits from there (especially the bracketing and Unicode operators) 💪
Thanks for the contribution. I think Perl6 is not compatible from Perl5 so you shouldn't extend Perl6 lexer from Perl lexer.
Hi @gfx, thanks for the feedback!
Indeed, I've mentioned earlier that this is early phase and would really be better if it is based on Lexers::RegexLexer instead of Lexers::Perl; I'm working on that now and hopefully I can push an update by this weekend. Hope you can let me know again what you think of it when it is up. 👍
Is there still any progress on this PR?
@Tyil thanks for noticing. I haven't had tuits lately to work on this, but I'll try this weekend.
Hi,
It's been a while since I last checked, is there anything I can do to help this particular PR to get merged? I'd like to have my README.pod6 to get rendered properly on GitLab :>
@Tyil thanks for reminding! I have to sort out the review comments here first (and likely rebase against any master updates,) which I missed last time as I prioritized on https://github.com/Perl/docker-perl work. Let me check and update tonight, thanks!
I'd just like to point out that the language has been renamed to Raku, although it might still be good to make perl6 an alias to raku for backward compatibility.
https://raku.org/
Hi guys! Any updates here? We really need it - https://github.com/forem/forem/issues/3009#issuecomment-762912057 it's stale for awhile ...
@melezhik I've been working on a different version of this PR for a while (it's the one we are using in raku.land), which does not use the Perl lexer as the starting point. That's been making slow progress, but seems promising. I'll see if I can try to get that into a more workable condition soon.
Not to mean that I would not like to see progress done on this one in the meantime, though :)
Thanks @jjatria the thing is dev.to uses the mainstream version of rogue ... But yeah, thanks ...
Just a gentle bump... @jjatria :smile: