For regexp substitution (s/this/that/[…]) Perl has an option flag ‘r’, non-desctructive substitution, which Sublime Text 3 build 3126 doesn’t recognize, causing syntax highlightning to break.
Example:
$trimmed = $input =~ s/^\s+|\s+$//gr;
(ps. how can I add this myself, until a fix is released?)