MadcapJake / language-perl6fe

»ö« Atom Perl 6 Support - Forgotten Edition »ö«
https://github.com/perl6/atom-language-perl6
Other
16 stars 3 forks source link

Fix heredocs and update/refactor quote construct grammar #1

Closed MadcapJake closed 8 years ago

MadcapJake commented 8 years ago

Unfortunately unable to handle non-nested heredocs. Perl 6 allows you to specify multiple heredocs in a line and then end them wherever you want thereafter. Due to oniguruma's nested rules and that you can only hold a reference to a captured group in the end rule of that same rule layer, the grammar will only properly capture this style if you end the last heredoc first (and so on).

Probably is a really rare usecase of heredocs, but still unfortunate that I can't capture it properly.