richterger / Perl-LanguageServer

Language Server for Perl
Other
225 stars 52 forks source link

Incorrect syntax highlighting #192

Closed annulen closed 1 year ago

annulen commented 1 year 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 1 year ago

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