aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2003-04-10 10:17:40 +0000
committernyamatongwe <devnull@localhost>2003-04-10 10:17:40 +0000
commit49dcf49500d494f8f1c879000738a3b6f71585a1 (patch)
tree6ae70a5157658fd7bad47c5f02e57c8d3e0f3b10 /src
parent9b2855d98464e74ebdcd00db735bfe48c7a6e160 (diff)
downloadscintilla-mirror-49dcf49500d494f8f1c879000738a3b6f71585a1.tar.gz
Fixed hang where '#' was last non-whitepsace in file.
Diffstat (limited to 'src')
-rw-r--r--src/LexVB.cxx2
1 files changed, 1 insertions, 1 deletions
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++;
}