(self, text, pos)
| 809 | IDENTCHARS = string.ascii_letters + string.digits + "_" |
| 810 | |
| 811 | def colorize_syntax_error(self, text, pos): |
| 812 | text.tag_add("ERROR", pos) |
| 813 | char = text.get(pos) |
| 814 | if char and char in self.IDENTCHARS: |
| 815 | text.tag_add("ERROR", pos + " wordstart", pos) |
| 816 | if '\n' == text.get(pos): # error at line end |
| 817 | text.mark_set("insert", pos) |
| 818 | else: |
| 819 | text.mark_set("insert", pos + "+1c") |
| 820 | text.see(pos) |
| 821 | |
| 822 | def update_cursor_blink(self): |
| 823 | "Update the cursor blink configuration." |
no test coverage detected