atom-language icon indicating copy to clipboard operation
atom-language copied to clipboard

/ '/' / breaks highlighting but m/ '/' / is fine

Open samcv opened this issue 8 years ago • 2 comments

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

samcv avatar Feb 11 '17 07:02 samcv

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

z

zoffixznet avatar Apr 18 '17 16:04 zoffixznet

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+) /

samcv avatar Apr 20 '17 23:04 samcv