diff options
author | nyamatongwe <devnull@localhost> | 2010-10-27 10:44:38 +1100 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2010-10-27 10:44:38 +1100 |
commit | bdd66570ca882bb027ef91bd6cd6a9e15728d974 (patch) | |
tree | 36129d046070ee34233b27580284490756d4ae10 /lexers/LexBash.cxx | |
parent | ea5ecbf1e371b6ce204b65823916bf28e7ecf0b9 (diff) | |
download | scintilla-mirror-bdd66570ca882bb027ef91bd6cd6a9e15728d974.tar.gz |
Fix for bug #3063822 for bash here docs starting with <<-rel-2-22
Diffstat (limited to 'lexers/LexBash.cxx')
-rw-r--r-- | lexers/LexBash.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lexers/LexBash.cxx b/lexers/LexBash.cxx index 7c06bdebb..1c844a6fd 100644 --- a/lexers/LexBash.cxx +++ b/lexers/LexBash.cxx @@ -407,8 +407,8 @@ static void ColouriseBashDoc(unsigned int startPos, int length, int initStyle, if (s[strlen(s) - 1] == '\r') s[strlen(s) - 1] = '\0'; if (strcmp(HereDoc.Delimiter, s) == 0) { - if ((prefixws > 0 && HereDoc.Indent) || // indentation rule - (prefixws == 0 && !HereDoc.Indent)) { + if ((prefixws == 0) || // indentation rule + (prefixws > 0 && HereDoc.Indent)) { sc.SetState(SCE_SH_DEFAULT); break; } |