diff options
author | nyamatongwe <unknown> | 2010-10-27 10:44:38 +1100 |
---|---|---|
committer | nyamatongwe <unknown> | 2010-10-27 10:44:38 +1100 |
commit | 010a3916103fa45b8969888b719abc90bb722de6 (patch) | |
tree | 7bd1a5621f10697c48dffc4c597b2e676565e323 /lexers/LexBash.cxx | |
parent | c80faa757ba819566a8a82bcbfa97b5ea703468b (diff) | |
download | scintilla-mirror-010a3916103fa45b8969888b719abc90bb722de6.tar.gz |
Fix for bug #3063822 for bash here docs starting with <<-
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; } |