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 """ |