diff --git a/highlight2.py b/highlight2.py index c01d9f9..bf66340 100644 --- a/highlight2.py +++ b/highlight2.py @@ -42,12 +42,5 @@ class Highlighter: def highlight(self, lines): self.tokens = [[] for l in lines] self.lexer.lex(lines, y=0, x=0) - y = 0 for token in self.lexer: - assert y <= token.y, "oh no %d %d" % (y, token.y) - assert token.y < len(lines), "uh oh %d %d" % (token.y, len(lines)) self.tokens[token.y].append(token) - y = token.y - - def update(self): - pass