aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorActiveState <unknown>2016-09-28 09:51:13 +1000
committerActiveState <unknown>2016-09-28 09:51:13 +1000
commit63c2860548bcf27baa3f4f6791384cc323955e04 (patch)
tree3377019bf89f42b6d7e6e8e41b68aea4f0cd7963
parent073480a615d644f8c61e339a500243db00989a80 (diff)
downloadscintilla-mirror-63c2860548bcf27baa3f4f6791384cc323955e04.tar.gz
Bug [#1868]. Understand the grave accent escape character for PowerShell.
-rw-r--r--doc/ScintillaHistory.html4
-rw-r--r--lexers/LexPowerShell.cxx2
2 files changed, 6 insertions, 0 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html
index a6079cfeb..16cad92ee 100644
--- a/doc/ScintillaHistory.html
+++ b/doc/ScintillaHistory.html
@@ -553,6 +553,10 @@
<a href="http://sourceforge.net/p/scintilla/feature-requests/1143/">Feature #1143.</a>
</li>
<li>
+ The PowerShell lexer understands the grave accent escape character.
+ <a href="http://sourceforge.net/p/scintilla/bugs/1868/">Bug #1868</a>.
+ </li>
+ <li>
The YAML lexer recognizes inline comments.
<a href="http://sourceforge.net/p/scintilla/bugs/1660/">Bug #1660</a>.
</li>
diff --git a/lexers/LexPowerShell.cxx b/lexers/LexPowerShell.cxx
index 00d79db83..bf1ee29d1 100644
--- a/lexers/LexPowerShell.cxx
+++ b/lexers/LexPowerShell.cxx
@@ -149,6 +149,8 @@ static void ColourisePowerShellDoc(Sci_PositionU startPos, Sci_Position length,
sc.SetState(SCE_POWERSHELL_OPERATOR);
} else if (IsAWordChar(sc.ch)) {
sc.SetState(SCE_POWERSHELL_IDENTIFIER);
+ } else if (sc.ch == '`') {
+ sc.Forward(); // skip next escaped character
}
}
}