diff options
Diffstat (limited to 'src/LexVB.cxx')
| -rw-r--r-- | src/LexVB.cxx | 2 | 
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++;  				}  | 
