aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2007-01-22 07:30:32 +0000
committernyamatongwe <devnull@localhost>2007-01-22 07:30:32 +0000
commit50a833ad1aa620a0d24b1ca1a511a2db87e78eae (patch)
treee04c108f173e02a9b13214671173a35450257870 /src
parent5fad14c8947389633b4ad861cf3871dc67966202 (diff)
downloadscintilla-mirror-50a833ad1aa620a0d24b1ca1a511a2db87e78eae.tar.gz
Patch from bug #1588699 to require space before -letter test word.
Diffstat (limited to 'src')
-rw-r--r--src/LexBash.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/LexBash.cxx b/src/LexBash.cxx
index e9c31d6b3..242985a96 100644
--- a/src/LexBash.cxx
+++ b/src/LexBash.cxx
@@ -338,7 +338,8 @@ static void ColouriseBashDoc(unsigned int startPos, int length, int initStyle,
HereDoc.Indent = false;
} else if (ch == '-' // file test operators
&& isSingleCharOp(chNext)
- && !isalnum((chNext2 = styler.SafeGetCharAt(i+2)))) {
+ && !isalnum((chNext2 = styler.SafeGetCharAt(i+2)))
+ && isspace(chPrev)) {
styler.ColourTo(i + 1, SCE_SH_WORD);
state = SCE_SH_DEFAULT;
i++;