QScintilla/Lexers/LexerPygments.py

branch
5_3_x
changeset 2656
192f4e0024c2
parent 2520
d226e801d308
child 2677
3d4277929fb3
child 2965
d133c7edd88a
child 3163
9f50365a0870
--- a/QScintilla/Lexers/LexerPygments.py	Sun May 12 19:02:13 2013 +0200
+++ b/QScintilla/Lexers/LexerPygments.py	Mon May 13 19:58:28 2013 +0200
@@ -447,7 +447,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