Sublime Forum

[BUG] problem with synax highlight (Perl)

#1

Hi.

It seems there is a problem with syntax highlighting of a Perl code:

sub test {
    my $data = 0xFFFFFFFF << (32);
    return $data;
}

now all text below is beeing highlighted incorrectly.

0 Likes

#2

I have a similar problem. My variable, array and hash are not highlighted. Also the regular expression in my code are a single color.

0 Likes

#3

I have the same problem

0 Likes

#4

Yes, same here. I actually code perl in a different editor because of this.

0 Likes

#5

Wow, I just downloaded the sublime text beta to try out with my perl coding, and this is the first issue that I noticed.

For now, I’ve had to eliminate any “<< (” sequence in my perl code to keep this from happening. The editor doesn’t seem to recognize the open parenthesis if it is just after the left shift characters.

0 Likes

#6

Same problem

0 Likes

#7

I have the other problem with modern perl syntax:

$self->{pidfile} //= '/var/run/' . $self->name() . '.pid';

All remaining code below is coloured as if this string contains an unclosed quotation mark.

0 Likes

#8

Thanks for the great editor, but +1 to this perl syntax issue

0 Likes

#9

Shameless self-plug for my custom Perl syntax. Passes all issues reported in this thread, though there are still some problems.

0 Likes