branch : pmacs2
This commit is contained in:
moculus 2007-04-01 05:41:13 +00:00
parent 5cf1a2843e
commit ce6199eb58
1 changed files with 0 additions and 7 deletions

View File

@ -42,12 +42,5 @@ class Highlighter:
def highlight(self, lines): def highlight(self, lines):
self.tokens = [[] for l in lines] self.tokens = [[] for l in lines]
self.lexer.lex(lines, y=0, x=0) self.lexer.lex(lines, y=0, x=0)
y = 0
for token in self.lexer: 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) self.tokens[token.y].append(token)
y = token.y
def update(self):
pass