Commit dc44b46f authored by Henning Glawe's avatar Henning Glawe
Browse files

remove value_str from token class

parent 1b8dd2fd
......@@ -37,12 +37,11 @@ class token(object):
self.match = self.regex.match(line, pos_in_line)
if self.match is None:
raise TokenMatchError
self.value_str =
self.value = self.match2value()
def highlighted(self):
"""return ANSI-highlighted token"""
m = self.cRE_end_newline.match(self.value_str)
m = self.cRE_end_newline.match(
return self.highlight_start + + self.highlight_end +
def match2value(self):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment