Skip to content

Perl highlighting broken after a heredoc with "CSS" as the terminator #43

@bmartin

Description

@bmartin

Consider the example below. When viewed in VSCode, the first "my $a" line is colored correctly while "my $b" is incorrectly colored.

# Example showing that CSS heredoc is treated differently
my $foo = <<"END";
Heredoc ending in end.
END

# Colored correctly:
my $a = "a";

my $foo = <<"CSS";
Heredoc ending in end.
CSS

# Colored incorrectly:
my $b = "b";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions