Fixed wrong detection of some words.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@958 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2006-11-01 16:52:16 +00:00
parent 018f2cb89b
commit d35759a648
2 changed files with 3 additions and 1 deletions

View File

@ -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 <nick.treleaven@btinternet.com>

View File

@ -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++;