3 ms·
> whew, I would not want to be in the business of lexing perl Hence the saying: the only thing that can parse Perl is Perl :)
by yellowapple 4y ago
> whew, I would not want to be in the business of lexing perl
Hence the saying: the only thing that can parse Perl is Perl :)
- mdaniel 4y agoYour comment made me curious, so I installed the Perl plugin for IJ <https://plugins.jetbrains.com/plugin/7796-perl https://plugins.jetbrains.com/plugin/7796-perl> and sure enough, it parsed that str assignment correctly. My hat's off to them! It also seems <https://github.com/Camelcade/Perl5-IDEA/blob/2023.1.1/plugin/core/grammar/Perl.flex#L353-L358 https://github.com/Camelcade/Perl5-IDEA/blob/2023.1.1/plugin...> that one can have line comments in there, too my $str = q #what is happening here 7Hello, world.7;