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, $_;
}
}
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):