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

Regex capture marker breaks highlights

Open zoffixznet opened this issue 8 years ago • 1 comments

I'm on v1.11.2

Opening regex capture marker breaks highlights until closing capture marker is seen, when used in a regex given to a method called with .foo() form, even though everything's fine when .foo: form call is used.

Example Code


say 'foo'.subst( / 'fo' <( 'o' /, 'x');
say "Hi"; # Opps broken highlights now )> # fixed now


say 'foo'.subst: / 'fo' <( 'o' /, 'x';
# Doesn't happen with this method call form tho

Picture [optional]

z

Leave this in. For internal use.

  • [x] Fixed in Master
  • [x] Fixed in Release
  • [ ] Has Tests
  • [ ] Passes Tests

zoffixznet avatar Dec 19 '16 15:12 zoffixznet

Looks like it autoclosed this. Fixed in v1.11.3, (just released it) but going to just keep this open until tests are written.

samcv avatar Dec 19 '16 19:12 samcv