diff options
author | nyamatongwe <devnull@localhost> | 2004-06-02 10:31:21 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2004-06-02 10:31:21 +0000 |
commit | 5d3ea750f38b6b1fd0bb01c90a1d1df2f4145944 (patch) | |
tree | f7a5e3a9226308212cec588d0306bf03926e8c08 /src | |
parent | ad2e96efca38be0138a919b74de8290eb03d7870 (diff) | |
download | scintilla-mirror-5d3ea750f38b6b1fd0bb01c90a1d1df2f4145944.tar.gz |
Fixed issue with continuation lines on If statements.
Diffstat (limited to 'src')
-rw-r--r-- | src/LexAU3.cxx | 4 |
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); } |