Sublime Forum

Subl3: Perl Syntax Highlightning broken after //= Operator

#1

Broken Highlightning sometimes after //= …

This gets very ugly with big files and brings my boss to the conclusion i should use emacs again :frowning:

Please help.

Perl example code:

if ($config{dev_demo}) {
$config{url} //= ‘http://demo.xy.com’;
$config{cgi_url} //= “$config{url}/cgi-bin/$config{dev_demo}”;
$config{htdocs_url} //= “$config{url}/$config{dev_demo}”;
$config{cgi_path} //= “/webserver/xxx/cgi-bin/$config{dev_demo}”;
$config{htdocs_path} //= “/webserver/xxx/$config{dev_demo}”;
$config{dbms_type} //= ‘PostgreSQL’;
$config{dbname} //= “xxx”;
$config{dbuser} //= ‘yyy’;
$config{dbpwd} //= ‘’;
$config{perl_path} //= ‘/opt/ActivePerl-5.10/bin/perl’;
fix_perl_path();
$config{dbpwd} //= ‘/webserver/xxx/jre/linux/bin/java’;
$config{running_at_home} //= 1;
$config{admin_mode} //= 1;
$config{system_type} //= 50;
}

if ($config{dev_laptop}) {
$config{cgi_path} = “c:/audimex/$config{dev_laptop}/cgi-bin”;
}

0 Likes

#2

Hello!

This only happens when you have one or more slashes in this string on the right, but it’s still a bug. Here’s my bug report:

https://forum.sublimetext.com/t/perl-syntax-highlighting-broken-after-operator-if-string-contains-a-slash/23520

1 Like

#3

Any chance on getting this fixed?

0 Likes

#4

this may be related to

feel free to work on fixing it yourself, PRs are accepted on that repo :slight_smile:

1 Like