445 if eolLen > 1: |
445 if eolLen > 1: |
446 tlen += txt.count('\n') |
446 tlen += txt.count('\n') |
447 cpos += tlen |
447 cpos += tlen |
448 if tlen and cpos < textLen: |
448 if tlen and cpos < textLen: |
449 self.editor.setStyling(tlen, style) |
449 self.editor.setStyling(tlen, style) |
450 else: |
450 if cpos >= textLen: |
451 break |
451 break |
452 self.editor.startStyling(cpos, 0x3f) |
452 self.editor.startStyling(cpos, 0x3f) |
453 |
453 |
454 def isCommentStyle(self, style): |
454 def isCommentStyle(self, style): |
455 """ |
455 """ |