MadcapJake / language-perl6fe

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

Broke Highlights on <> lists that span multiple lines #6

Open zoffixznet opened 8 years ago

zoffixznet commented 8 years ago

See image (second < ... > list has a newline between items at some point to fit it on multiple lines): bug2

MadcapJake commented 8 years ago

Can those actually be multi-line? I didn't realize they could.

zoffixznet commented 8 years ago

Yup. I got that in a module and tests seem to pass :) https://github.com/zoffixznet/perl6-Number-Denominate/blob/master/lib/Number/Denominate.pm6#L63

MadcapJake commented 8 years ago

This is gonna be hard, the Perl6 compiler figures it out because it keeps track of what kind of expression you can build where, but since this highlighter only sees the syntax, making this multiline captures whenever any less-than operator is in a line :disappointed:

zoffixznet commented 8 years ago

Then close the issue :) it's not tgat important :)

MadcapJake commented 8 years ago

I could require that (since it seems idiomatic) in order to be considered a quoteword construct, each delimiter must be immediately followed/preceded by a letter. I know this isn't actually required but at least it would allow for some multi-line quotewords and it seems that often most people do this anyways.