+9

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

Michele Beltrame 13 лет назад обновлен Italpro - M Beltrame 11 лет назад 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.


Сервис поддержки клиентов работает на платформе UserEcho