Fixed an issue in the Pygments lexer causing highlighting to stop prematurely. 5_3_x

Mon, 13 May 2013 19:58:28 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 13 May 2013 19:58:28 +0200
branch
5_3_x
changeset 2656
192f4e0024c2
parent 2655
cc90e8ec65a6
child 2667
3e741f0db4da

Fixed an issue in the Pygments lexer causing highlighting to stop prematurely.

QScintilla/Lexers/LexerPygments.py file | annotate | diff | comparison | revisions
diff -r cc90e8ec65a6 -r 192f4e0024c2 QScintilla/Lexers/LexerPygments.py
--- 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