Raku / atom-language

Atom/Github Raku Syntax Highlighting Support 🦋
Other
24 stars 11 forks source link

s[pattern] substitution breaks highlighting #69

Closed nottalulah closed 8 months ago

nottalulah commented 7 years ago

Describe what you see, what you want to see, and perhaps some linkage to docs, synopses, or irclog chatter.

The s[pattern] = doit() substitution /e modifier replacement defined in S05 breaks highlighting if used with adverbs. It also doesn't apply regex highlighting, even without adverbs.

Example Code

sub some-sub(Str $something) is export
{
    my $s = $something.subst("::", "");
    $s ~~ s:g[(<[A..Z]>)(<[A..Z]>*)] = $0 ~ lc($1);
    $s;
}
sub another-sub is export { return some-sub("Hello::World"); }

Picture [optional]

fvvrmey

Leave this in. For internal use.

samcv commented 7 years ago

This is fixed now in master. Will be releasing once travis runs.