diff options
author | Jim Pattee <unknown> | 2017-04-05 16:37:02 +1000 |
---|---|---|
committer | Jim Pattee <unknown> | 2017-04-05 16:37:02 +1000 |
commit | 9f548b3f527a48f06f9dfdc1fe9452126488384e (patch) | |
tree | 329a50f76654aa57a22c14d74ce885d53a45ad8d /lexers/LexPowerShell.cxx | |
parent | 9ea239e7de4b11ac812640a54a67b4231c3b9ded (diff) | |
download | scintilla-mirror-9f548b3f527a48f06f9dfdc1fe9452126488384e.tar.gz |
Bug [#1929]. Recognize escaped quotes within quotes.
Diffstat (limited to 'lexers/LexPowerShell.cxx')
-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 |