Open glucas opened 5 years ago
Workaround is to add a comment char or whitespace at the end of the line. The issue appears to be having a line ending with @'$
.
I've also noticed this issue, even when the at sign is backtick-escaped. Something like
Write-Host "`@"
will continue syntax highlighting for a string until the next quotation mark, even though that's actually the beginning of a different string.
I have a powershell script with this line (part of a loop looking for @xxx@ tokens in a file.
This is being interpreted as starting a here-string so everything after that in the file has the wrong syntax highlighting.