From 7b1acf2c8a66c5edde1ba3c839cba8680cffb125 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 28 Jul 2007 01:06:42 +0000 Subject: Fix for #endregion from Jos. --- src/LexAU3.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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 // 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(tolower(ch)); } } -- cgit v1.2.3