From 63c2860548bcf27baa3f4f6791384cc323955e04 Mon Sep 17 00:00:00 2001 From: ActiveState Date: Wed, 28 Sep 2016 09:51:13 +1000 Subject: Bug [#1868]. Understand the grave accent escape character for PowerShell. --- doc/ScintillaHistory.html | 4 ++++ lexers/LexPowerShell.cxx | 2 ++ 2 files changed, 6 insertions(+) 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 @@ Feature #1143.
  • + The PowerShell lexer understands the grave accent escape character. + Bug #1868. +
  • +
  • The YAML lexer recognizes inline comments. Bug #1660.
  • 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 } } } -- cgit v1.2.3