From 50a833ad1aa620a0d24b1ca1a511a2db87e78eae Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 22 Jan 2007 07:30:32 +0000 Subject: Patch from bug #1588699 to require space before -letter test word. --- src/LexBash.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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++; -- cgit v1.2.3