diff options
-rw-r--r-- | lexers/LexPowerShell.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lexers/LexPowerShell.cxx b/lexers/LexPowerShell.cxx index bf1ee29d1..261575544 100644 --- a/lexers/LexPowerShell.cxx +++ b/lexers/LexPowerShell.cxx @@ -77,11 +77,15 @@ static void ColourisePowerShellDoc(Sci_PositionU startPos, Sci_Position length, // This is a doubles quotes string if (sc.ch == '\"') { sc.ForwardSetState(SCE_POWERSHELL_DEFAULT); + } else if (sc.ch == '`') { + sc.Forward(); // skip next escaped character } } else if (sc.state == SCE_POWERSHELL_CHARACTER) { // This is a single quote string if (sc.ch == '\'') { sc.ForwardSetState(SCE_POWERSHELL_DEFAULT); + } else if (sc.ch == '`') { + sc.Forward(); // skip next escaped character } } else if (sc.state == SCE_POWERSHELL_HERE_STRING) { // This is a doubles quotes here-string |