Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bmartin opened this issue Sep 24, 2020 · 2 comments
Open

Comments

@bmartin
Copy link

bmartin commented Sep 24, 2020

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";
@bmartin
Copy link
Author

bmartin commented Sep 24, 2020

Note that this is case sensitive. Using lowercase "css" does not have the same behavior.

Fortunately, the coloring right here on github is also demonstrating the issue.

@PatrickCronin
Copy link
Contributor

PatrickCronin commented Sep 24, 2020

I believe I have a commit in my open PR that will address this particular issue: 0f3c6df

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants