Commit fbed527f authored by Bram Schoenmakers's avatar Bram Schoenmakers

Do not highlight a @ or + at the end of a line.

@\033[0m gets matched by '\B(\+|@)(\S*\w)', and as a result, the @ would
be colored to the context color.
parent 72a6da34
......@@ -59,7 +59,7 @@ class PrettyPrinterColorFilter(PrettyPrinterFilter):
p_todo_str = color + p_todo_str + NEUTRAL_COLOR
if config().highlight_projects_contexts():
p_todo_str = re.sub(
r'\B(\+|@)(\S*\w)',
r'\B(\+|@)([^\033]*\w)',
lambda m: (
context_color if m.group(0)[0] == "@"
else project_color)+m.group(0)+color,
......
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