atom-language
atom-language copied to clipboard
/ '/' / breaks highlighting but m/ '/' / is fine
Describe what you see, what you want to see, and perhaps some linkage to docs, synopses, or irclog chatter.
Example Code
m/ '/' / # fine
/ '/' / # not good
Picture [optional]
Providing a picture means that if the issue is fixed and linguist updates to include the fix (linguist uses this package to highlight Perl 6 on GitHub), your issue will remain historically viewable.
Leave this in. For internal use.
- [x] Fixed in Master
- [ ] Fixed in Release
- [x] Has Tests
- [x] Passes Tests
Unsure if it's the same issue, but on 1.15.0, I'm getting breakage with this code:
# Regex in many common languages:
/\\\/\\\\\//;
# Same version in Perl 6:
# Standard quotes; no need to escape the '/'
/ '\\/\\\\/' /;
# Or use U+FF62, U+FF63 quoters and avoid quoting the '\' as well:
/ ï½¢\/\\/ï½£ /;
Pic
Got this recently. Has to be a way to fix it, but will require finding which regex candidate is the problematic one.
if $<url> ~~ / 'http' [s]? '://github.com/' $<user>(\S+)'/' $<repo>=(\S+) /