diff options
-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++; |