rouge icon indicating copy to clipboard operation
rouge copied to clipboard

Add a Raku/Perl 6 lexer

Open zakame opened this issue 8 years ago • 12 comments

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

zakame avatar Sep 09 '17 10:09 zakame

I took at look at the Pygments implementation and might try to crib a few bits from there (especially the bracketing and Unicode operators) 💪

zakame avatar Sep 09 '17 11:09 zakame

Thanks for the contribution. I think Perl6 is not compatible from Perl5 so you shouldn't extend Perl6 lexer from Perl lexer.

gfx avatar Sep 13 '17 22:09 gfx

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. 👍

zakame avatar Sep 14 '17 01:09 zakame

Is there still any progress on this PR?

Tyil avatar May 31 '18 08:05 Tyil

@Tyil thanks for noticing. I haven't had tuits lately to work on this, but I'll try this weekend.

zakame avatar May 31 '18 12:05 zakame

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 avatar Aug 29 '18 08:08 Tyil

@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!

zakame avatar Aug 29 '18 15:08 zakame

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/

rypervenche avatar Feb 26 '20 20:02 rypervenche

Hi guys! Any updates here? We really need it - https://github.com/forem/forem/issues/3009#issuecomment-762912057 it's stale for awhile ...

melezhik avatar Jan 19 '21 15:01 melezhik

@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 :)

jjatria avatar Jan 19 '21 16:01 jjatria

Thanks @jjatria the thing is dev.to uses the mainstream version of rogue ... But yeah, thanks ...

melezhik avatar Jan 19 '21 16:01 melezhik

Just a gentle bump... @jjatria :smile:

polettix avatar Feb 04 '23 11:02 polettix