richterger / Perl-LanguageServer

Language Server for Perl
Other
219 stars 53 forks source link

Incorrect syntax highlighting #192

Closed annulen closed 11 months ago

annulen commented 11 months ago

In the following fragment elsif line is highlighted incorrectly in VSCode — # is treated as a beginning of the comment (just like what GitHub highlighter is doing):

    while (<$fh>) {
        if (/^#\s*RUN:(.*)$/) {
            push @commands, $1;
        } elsif (!/^#\sCOM:/) {
            push @expected, $_;
        }
    }
richterger commented 11 months ago

Perl::LanguageServer has nothing do to with syntax highlighting. That's done by vscode itself.