PowerShell / EditorSyntax

PowerShell syntax highlighting for editors (VS Code, Atom, SublimeText, TextMate, etc.) and GitHub!
MIT License
133 stars 45 forks source link

Double doublequotes in here-string scopes as a character.escape #143

Closed msftrncs closed 3 years ago

msftrncs commented 6 years ago

Environment

Issue Description

Doubled doublequotes in here-string is scoped as a character escape.

image

Expected Behavior

Doubled doublequotes are not any kind of an escaped character in a here-string.

image

Code Samples

@"
Hello There
""Doubled DoubleQuotes""
"@
msftrncs commented 6 years ago

Single quote here-string has similar problem, treats double single-quotes as character escape, where there are no valid character escapes in a single-quoted here-string.