MadcapJake / language-perl6fe

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

Quotes in s/// seem to cause problems #14

Open Odud opened 8 years ago

Odud commented 8 years ago

Please see attached image - it seems as though the quote character is causing the highlighter to think that everything that follows is a literal capture string

MadcapJake commented 8 years ago

Triple slash constructs like s/// and tr/// aren't really supported yet. I am not really sure how to crack this nut. The problem is that Atom's highlighter doesn't support multi-part forms.

Let me at least add single-line support and I have a few ideas for how I could try to fake multi-part constructs.

Odud commented 8 years ago

It's not a big deal as it doesn't happen that often, at the moment I just put stuff like this at the end of the file... But of course a fix would be great.

Odud commented 8 years ago

Hi Jake, off topic but is it possible to have perl and perl6fe working in atom at the same time? At the moment unless I disable perl I cant get seem to get perl6fe to work. Do you have an example config where both work?

Pete Barlow

-----Original Message----- From: "Jake Russo" notifications@github.com Sent: ‎09/‎01/‎2016 15:56 To: "MadcapJake/language-perl6fe" language-perl6fe@noreply.github.com Cc: "Odud" langbard@gmail.com Subject: Re: [language-perl6fe] Quotes in s/// seem to cause problems (#14)

Triple slash constructs like s/// and tr/// aren't really supported yet. I am not really sure how to crack this nut. The problem is that Atom's highlighter doesn't support multi-part forms. Let me at least add single-line support and I have a few ideas for how I could try to fake multi-part constructs. — Reply to this email directly or view it on GitHub.

MadcapJake commented 8 years ago

Yeah, just follow the third option in How Do I Use This? and only include filenames that are perl6-specific. If you ever find a perl 6 file that ends in pl or pm, you'll have to just use the language selector (ctrl+shift+l).

Odud commented 8 years ago

Thanks, I think that's what I'd done, probably messed something up in the config, can't test atm as I'm at the pub...

Pete Barlow

-----Original Message----- From: "Jake Russo" notifications@github.com Sent: ‎10/‎01/‎2016 13:53 To: "MadcapJake/language-perl6fe" language-perl6fe@noreply.github.com Cc: "Odud" langbard@gmail.com Subject: Re: [language-perl6fe] Quotes in s/// seem to cause problems (#14)

Yeah, just follow the third option in How Do I Use This? and only include filenames that are perl6-specific. If you ever find a perl 6 file that ends in pl or pm, you'll have to just use the language selector (ctrl+shift+l). — Reply to this email directly or view it on GitHub.