parent
5cf1a2843e
commit
ce6199eb58
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue