From 82db4d4cdd58a52e9462ca4f0e25f2d0f3028e02 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 2 Jun 2004 10:31:21 +0000 Subject: Fixed issue with continuation lines on If statements. --- src/LexAU3.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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 // 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); } -- cgit v1.2.3