From 4ba93e2fb8732516624bf96c4912f12d24ab7ad9 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 11 Aug 2010 16:22:21 +1000 Subject: Feature Request #3042228 Allow underscore to be a Powershell word character. --- lexers/LexPowerShell.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lexers/LexPowerShell.cxx') 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, -- cgit v1.2.3