aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--lexers/LexBash.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/lexers/LexBash.cxx b/lexers/LexBash.cxx
index 1c844a6fd..c39905818 100644
--- a/lexers/LexBash.cxx
+++ b/lexers/LexBash.cxx
@@ -640,6 +640,14 @@ static void FoldBashDoc(unsigned int startPos, int length, int, WordList *[],
levelCurrent--;
}
}
+ // Here Document folding
+ if (style == SCE_SH_HERE_DELIM) {
+ if (ch == '<' && chNext == '<') {
+ levelCurrent++;
+ }
+ } else if (style == SCE_SH_HERE_Q && styler.StyleAt(i+1) == SCE_PL_DEFAULT) {
+ levelCurrent--;
+ }
if (atEOL) {
int lev = levelPrev;
if (visibleChars == 0 && foldCompact)