aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2004-06-02 10:31:21 +0000
committernyamatongwe <unknown>2004-06-02 10:31:21 +0000
commit82db4d4cdd58a52e9462ca4f0e25f2d0f3028e02 (patch)
treef7a5e3a9226308212cec588d0306bf03926e8c08 /src
parent463b06d30778c1c06b26d4e1f69878dd1bd0817b (diff)
downloadscintilla-mirror-82db4d4cdd58a52e9462ca4f0e25f2d0f3028e02.tar.gz
Fixed issue with continuation lines on If statements.
Diffstat (limited to 'src')
-rw-r--r--src/LexAU3.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/LexAU3.cxx b/src/LexAU3.cxx
index 2971fd176..41462ee1e 100644
--- a/src/LexAU3.cxx
+++ b/src/LexAU3.cxx
@@ -20,6 +20,7 @@
// triggered by: fold.comment=1
// Added Folding logic for preprocessor blocks triggered by fold.preprocessor=1
// Added Special for #region - #endregion syntax highlight and folding.
+// May 30, 2004 - Fixed issue with continuation lines on If statements.
//
// Copyright for Scintilla: 1998-2001 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
@@ -395,7 +396,8 @@ static void FoldAU3Doc(unsigned int startPos, int length, int, WordList *[], Acc
//### int styleNext = 0;
int stylePrev = 0;
// find the first previous line without continuation character at the end
- while (lineCurrent > 0 && IsContinuationLine(lineCurrent,styler)) {
+ while ((lineCurrent > 0 && IsContinuationLine(lineCurrent,styler)) ||
+ (lineCurrent > 1 && IsContinuationLine(lineCurrent-1,styler))) {
lineCurrent--;
startPos = styler.LineStart(lineCurrent);
}