aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2007-07-28 01:06:42 +0000
committernyamatongwe <devnull@localhost>2007-07-28 01:06:42 +0000
commitc8ed299d3ed902ee16d8121adf4ae0e1374deee0 (patch)
tree349ed7abcfba0a105b07a27e5db074cd73542263
parente035be19cd3c4a94aa7217aa2f87421cfb5832d2 (diff)
downloadscintilla-mirror-c8ed299d3ed902ee16d8121adf4ae0e1374deee0.tar.gz
Fix for #endregion from Jos.
-rw-r--r--src/LexAU3.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/LexAU3.cxx b/src/LexAU3.cxx
index b577c58d6..cedf261f5 100644
--- a/src/LexAU3.cxx
+++ b/src/LexAU3.cxx
@@ -44,6 +44,7 @@
// Apr 8, 2006 - Added support for AutoIt3 Standard UDF library (SCE_AU3_UDF)
// Mar 9, 2007 - Fixed bug with + following a String getting the wrong Color.
// Jun 20, 2007 - Fixed Commentblock issue when LF's are used as EOL.
+// Jul 26, 2007 - Fixed #endregion undetected bug.
//
// 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.
@@ -700,7 +701,7 @@ static void FoldAU3Doc(unsigned int startPos, int length, int, WordList *[], Acc
// vars for getting first word to check for keywords
bool FirstWordStart = false;
bool FirstWordEnd = false;
- char szKeyword[10]="";
+ char szKeyword[11]="";
int szKeywordlen = 0;
char szThen[5]="";
int szThenlen = 0;
@@ -730,7 +731,7 @@ static void FoldAU3Doc(unsigned int startPos, int length, int, WordList *[], Acc
szKeyword[szKeywordlen] = '\0';
}
else {
- if (szKeywordlen < 9) {
+ if (szKeywordlen < 10) {
szKeyword[szKeywordlen++] = static_cast<char>(tolower(ch));
}
}