src/eric7/QScintilla/Lexers/SubstyledLexer.py

branch
eric7
changeset 10908
ef1b3cd9a6ca
parent 10806
2f6df822e3b9
child 11090
f5f5f5803935
--- a/src/eric7/QScintilla/Lexers/SubstyledLexer.py	Tue Sep 03 17:28:40 2024 +0200
+++ b/src/eric7/QScintilla/Lexers/SubstyledLexer.py	Tue Sep 03 17:42:44 2024 +0200
@@ -173,7 +173,7 @@
         editor.SendScintilla(editor.SCI_GETSUBSTYLEBASES, 0, subStyleBases)
         distanceToSecondary = editor.SendScintilla(editor.SCI_DISTANCETOSECONDARYSTYLES)
 
-        subStyleBases = [b for b in bytearray(subStyleBases[:-1])]
+        subStyleBases = list(bytearray(subStyleBases[:-1]))
         if distanceToSecondary:
             subStyleBases.extend(b + distanceToSecondary for b in subStyleBases[:])
         for baseStyleNo in subStyleBases:

eric ide

mercurial