diff --git a/ChangeLog b/ChangeLog index 41664cc0..d9de1532 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,7 @@ * src/search.c: Changed tooltip of checkbox "Close dialog" to be more descriptive. * src/keybindings.c: Changed keybinding for Print to Ctrl+C. + * scintilla/LexBash.cxx: Fixed wrong detection of some words. 2006-11-01 Nick Treleaven diff --git a/scintilla/LexBash.cxx b/scintilla/LexBash.cxx index e9c31d6b..242985a9 100644 --- a/scintilla/LexBash.cxx +++ b/scintilla/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++;