QScintilla/Lexers/LexerPygments.py

branch
Py2 comp.
changeset 2677
3d4277929fb3
parent 2525
8b507a9a2d40
parent 2657
eb87b82eca17
child 3057
10516539f238
--- a/QScintilla/Lexers/LexerPygments.py	Fri May 24 18:39:58 2013 +0200
+++ b/QScintilla/Lexers/LexerPygments.py	Tue May 28 20:52:12 2013 +0200
@@ -449,7 +449,7 @@
                 cpos += tlen
                 if tlen and cpos < textLen:
                     self.editor.setStyling(tlen, style)
-                else:
+                if cpos >= textLen:
                     break
             self.editor.startStyling(cpos, 0x3f)
     

eric ide

mercurial