aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexSQL.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2000-04-23 22:58:26 +0000
committernyamatongwe <unknown>2000-04-23 22:58:26 +0000
commit1a0760897c81afebc3e9d2ead502d09eff9479ee (patch)
treed86be196f402ee62edae2b3158d5445da9275fe1 /src/LexSQL.cxx
parent944bf4364d72cef3c55f212628a3414ffcbf961c (diff)
downloadscintilla-mirror-1a0760897c81afebc3e9d2ead502d09eff9479ee.tar.gz
Ensured lexers do not style any more than they have been asked to.
Diffstat (limited to 'src/LexSQL.cxx')
-rw-r--r--src/LexSQL.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LexSQL.cxx b/src/LexSQL.cxx
index 83a22687e..facd0e6b7 100644
--- a/src/LexSQL.cxx
+++ b/src/LexSQL.cxx
@@ -50,7 +50,7 @@ static void ColouriseSQLDoc(unsigned int startPos, int length,
char chNext = styler[startPos];
styler.StartSegment(startPos);
unsigned int lengthDoc = startPos + length;
- for (unsigned int i = startPos; i <= lengthDoc; i++) {
+ for (unsigned int i = startPos; i < lengthDoc; i++) {
char ch = chNext;
chNext = styler.SafeGetCharAt(i + 1);