+9

Perl 5.10+ defined-or operator (//) breaks syntax highlighting

Michele Beltrame fa 13 anys updated by Italpro - M Beltrame fa 11 anys 1
Since version 5.10, Perl features a defined-or operator:


my $confpath = $ENV{CONFIG_PATH} // './lib';
my $confile = $confpath . '/myconf.conf';


which however breaks syntax highlighting, so the second line (and any following) don't get coloured as they do by using the true-or ( || ) operator.


By the way, the defined-or-assign ( //=) operator doesn't break syntax highlighting.


I'm now using SublimeText 3.0 beta, and this is still broken.