aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2010-08-11 16:22:21 +1000
committernyamatongwe <devnull@localhost>2010-08-11 16:22:21 +1000
commitf47552cd3e9f9b53da655cc46a7f2c96d4a712b1 (patch)
treebb31bdc32bd17b764babe4c3c0c2abcc4bb1d00f
parentf79a833e2d6cfd30e61257d24f40cf5561dc5a3f (diff)
downloadscintilla-mirror-f47552cd3e9f9b53da655cc46a7f2c96d4a712b1.tar.gz
Feature Request #3042228 Allow underscore to be a Powershell word character.
-rw-r--r--lexers/LexPowerShell.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lexers/LexPowerShell.cxx b/lexers/LexPowerShell.cxx
index 2416ab0d4..2b5c53fff 100644
--- a/lexers/LexPowerShell.cxx
+++ b/lexers/LexPowerShell.cxx
@@ -30,7 +30,7 @@ using namespace Scintilla;
// Extended to accept accented characters
static inline bool IsAWordChar(int ch) {
- return ch >= 0x80 || isalnum(ch) || ch == '-';
+ return ch >= 0x80 || isalnum(ch) || ch == '-' || ch == '_';
}
static void ColourisePowerShellDoc(unsigned int startPos, int length, int initStyle,