From 7d60bb8fe627ca4c2d2ce04c2e7af4554e150f68 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 10 Apr 2003 10:17:40 +0000 Subject: Fixed hang where '#' was last non-whitepsace in file. --- src/LexVB.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/LexVB.cxx b/src/LexVB.cxx index 2e6177e8b..72fdb9c3c 100644 --- a/src/LexVB.cxx +++ b/src/LexVB.cxx @@ -116,7 +116,7 @@ static void ColouriseVBDoc(unsigned int startPos, int length, int initStyle, } else if (sc.ch == '#') { int n = 1; int chSeek = ' '; - while (chSeek == ' ' || chSeek == '\t') { + while ((n < 100) && (chSeek == ' ' || chSeek == '\t')) { chSeek = sc.GetRelative(n); n++; } -- cgit v1.2.3