aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexPerl.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2000-04-23 22:58:26 +0000
committernyamatongwe <devnull@localhost>2000-04-23 22:58:26 +0000
commit7755da7142f88f1d9695fea500f9ae3f86d202ba (patch)
treed86be196f402ee62edae2b3158d5445da9275fe1 /src/LexPerl.cxx
parent6956977bdf58be27805d82c1aa33fc9d4c384241 (diff)
downloadscintilla-mirror-7755da7142f88f1d9695fea500f9ae3f86d202ba.tar.gz
Ensured lexers do not style any more than they have been asked to.
Diffstat (limited to 'src/LexPerl.cxx')
-rw-r--r--src/LexPerl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LexPerl.cxx b/src/LexPerl.cxx
index c57934866..2ed36e192 100644
--- a/src/LexPerl.cxx
+++ b/src/LexPerl.cxx
@@ -110,7 +110,7 @@ static void ColourisePerlDoc(unsigned int startPos, int length, int initStyle,
char chPrev = ' ';
char chNext = styler[startPos];
styler.StartSegment(startPos);
- for (int i = startPos; i <= lengthDoc; i++) {
+ for (int i = startPos; i < lengthDoc; i++) {
char ch = chNext;
chNext = styler.SafeGetCharAt(i + 1);
char chNext2 = styler.SafeGetCharAt(i + 2);