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

fix: Perl stringBody - Terminating backslash escape invalid. #4539

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jincao1
Copy link

@jincao1 jincao1 commented May 30, 2024

Quote escapes are valid escapes in a single quote string body in Perl.

In the original construct, syntax highlighting breaks if a single string construct ends on an escaped single quote.

For example:

my $var = $x . '\\abc\\' . $abc;

image

This is valid, and with the change below to allow for escapes of single quotes as well, it should make it render properly which is as follows.

image

Backslash escapes are valid escapes in a single quote string body in Perl.
@jincao1 jincao1 changed the title Update Perl stringBody - Terminating backslash escape invalid. fix: Perl stringBody - Terminating backslash escape invalid. May 30, 2024
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

Successfully merging this pull request may close these issues.

1 participant