QScintilla/Lexers/LexerPygments.py

branch
Py2 comp.
changeset 2677
3d4277929fb3
parent 2525
8b507a9a2d40
parent 2657
eb87b82eca17
child 3057
10516539f238
equal deleted inserted replaced
2670:e60ea6cb8e11 2677:3d4277929fb3
447 if eolLen > 1: 447 if eolLen > 1:
448 tlen += txt.count('\n') 448 tlen += txt.count('\n')
449 cpos += tlen 449 cpos += tlen
450 if tlen and cpos < textLen: 450 if tlen and cpos < textLen:
451 self.editor.setStyling(tlen, style) 451 self.editor.setStyling(tlen, style)
452 else: 452 if cpos >= textLen:
453 break 453 break
454 self.editor.startStyling(cpos, 0x3f) 454 self.editor.startStyling(cpos, 0x3f)
455 455
456 def isCommentStyle(self, style): 456 def isCommentStyle(self, style):
457 """ 457 """

eric ide

mercurial