Sublime Forum

Perl syntax highlight error on regex

#1

Sublime text 3 build 3059 Editing a simple perl source file containing these 2 lines:

      $x=~/ There is a leading space in this Regex/;
      print "This text and all below are not highlighted properly. All show up red\n";

There are several ways to get the hilighting right:

  • Eliminate the leading space

  • Replace the leading space with \s

  • Add a “m” before the “/”

However - it would be nice to get the problem fixed.

0 Likes