Sublime Forum

Perl syntax fix*

#1

Hello, I found that if there are something like $my_var << ($multiplier$i)* inside perl code it cause all text after this to be a string.
For myself I replace 1981 line with ((<<) ((?!=\d$( ])^;,’"`\s)])).*\n? in Perl.tmLanguage. Simply add ( in regex.
Question: can I add this changes somewere else - not in default perl syntax to be safe after future updates ?

0 Likes

#2

Answer: Copy the syntax definition file into your User package, it should override the default one. If not, rename the file (also in the “name” property) and if that also does not work, change the uuid. Or you can just delete the “default” definition.

0 Likes