eric6/QScintilla/Lexers/SubstyledLexer.py

changeset 7041
2c14833a2bee
parent 6942
2602857055c5
child 7229
53054eb5b15a
--- 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