Sublime Forum

Perl syntax highlight bug: non-destructive regex (s///r)

#1

The Perl syntax highlighter does not understand the Perl non-destructive search-and-replace modifier (trailing /r), which is described here:

You can add this line to any Perl script, and everything after it will lose proper highlighting:

my $test =~ s/.*/$1/r;

If you remove the trailing /r qualifier, the highlight corrects itself.

0 Likes

#2

Works for me. What build are you on? this might already be fixed in the latest version (dev build).

0 Likes

#3

I was using the latest production version from the websites (no updates available). However, I’ve installed the development version and I’m happy to report that it is indeed fixed!

  • Chris
0 Likes