From ce6199eb5888d631e2a0b14cffe86e413d892ebb Mon Sep 17 00:00:00 2001 From: moculus Date: Sun, 1 Apr 2007 05:41:13 +0000 Subject: [PATCH] --HG-- branch : pmacs2 --- highlight2.py | 7 ------- 1 file changed, 7 deletions(-) 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