jeff-hykin / better-perl-syntax

💾 An improvement to the perl syntax for VS Code
MIT License
5 stars 3 forks source link

// and //= operators incorrectly highlighted when at the start of a line. #30

Open daphnediane opened 1 year ago

daphnediane commented 1 year ago

Syntax highlight does not properly identify // and //= operators at the beginning of a line.

For example consider the following code:

#!/bin/perl

use common::sense ;

my $x ;

$x
    //= q{long string to force a line break here just a bit longer string here}
    ;

say $x;

Becomes image

But

#!/bin/perl

use common::sense ;

my $x ;

$x //= q{shorter string} ;

say $x;

Highlights correctly image