SubstyledLexer: fixed an issue when loading a .cpp file.

Thu, 27 Jun 2019 19:05:28 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 27 Jun 2019 19:05:28 +0200
changeset 7041
2c14833a2bee
parent 7040
f89952e5fc11
child 7042
2be5b245e1b8

SubstyledLexer: fixed an issue when loading a .cpp file.

eric6/QScintilla/Lexers/SubstyledLexer.py file | annotate | diff | comparison | revisions
--- a/eric6/QScintilla/Lexers/SubstyledLexer.py	Wed Jun 26 19:41:11 2019 +0200
+++ b/eric6/QScintilla/Lexers/SubstyledLexer.py	Thu Jun 27 19:05:28 2019 +0200
@@ -183,7 +183,8 @@
                 subStyleStart = editor.SendScintilla(
                     editor.SCI_ALLOCATESUBSTYLES, baseStyleNo, subStyleLength)
                 if subStyleStart < 0:
-                    subStyleLength = 0
+                    continue
+                
                 subStyleIndex = -1
                 for subStyleKey in sorted(subStylesData.keys()):
                     subStyleIndex += 1

eric ide

mercurial