diff options
author | nyamatongwe <unknown> | 2007-01-22 07:30:32 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2007-01-22 07:30:32 +0000 |
commit | fea85b2567041c72df20ba3c80f30e717c050395 (patch) | |
tree | e04c108f173e02a9b13214671173a35450257870 | |
parent | 61fa0f6ac8546fee128537c724a4da76ee24d8af (diff) | |
download | scintilla-mirror-fea85b2567041c72df20ba3c80f30e717c050395.tar.gz |
Patch from bug #1588699 to require space before -letter test word.
-rw-r--r-- | src/LexBash.cxx | 3 |
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++; |