From c229f6fce7a81581cb352822a9b1e924fa5df54f Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 2 Dec 2013 10:37:40 +1100 Subject: Fixed a problem when lexing started at the start of a comment line so the previous character had not been set and was 0. --- lexers/LexBash.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/lexers/LexBash.cxx b/lexers/LexBash.cxx index 513a5dff8..b85d01a7d 100644 --- a/lexers/LexBash.cxx +++ b/lexers/LexBash.cxx @@ -109,6 +109,7 @@ static void ColouriseBashDoc(unsigned int startPos, int length, int initStyle, // note that [+-] are often parts of identifiers in shell scripts CharacterSet setWord(CharacterSet::setAlphaNum, "._+-"); CharacterSet setMetaCharacter(CharacterSet::setNone, "|&;()<> \t\r\n"); + setMetaCharacter.Add(0); CharacterSet setBashOperator(CharacterSet::setNone, "^&%()-+=|{}[]:;>,*/