Commit 72a6da34 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Metadata highlighting should be independent of the option highlight_projects_contexts.

Probably an indenting mistake.
parent b67244fe
......@@ -64,11 +64,12 @@ class PrettyPrinterColorFilter(PrettyPrinterFilter):
context_color if m.group(0)[0] == "@"
else project_color)+m.group(0)+color,
p_todo_str)
p_todo_str = re.sub(r'\b\S+:[^/\s]\S+\b',metadata_color+r'\g<0>'+color,p_todo_str)
p_todo_str = re.sub(r'\b\S+:[^/\s]\S+\b',metadata_color+r'\g<0>'+color,p_todo_str)
# add link_color to any valid URL specified outside of the tag.
p_todo_str = re.sub(r'(^|\s)(\w+:){1}(//\S+)',' '+link_color+r'\2\3'+color,p_todo_str)
p_todo_str += NEUTRAL_COLOR
# chnge any group of reduntant multiple NEUTRAL_GROUP occurrence to only one
# change any group of reduntant multiple NEUTRAL_GROUP occurrence to only one
p_todo_str = re.sub(r'('+re.escape(NEUTRAL_COLOR)+')+',NEUTRAL_COLOR,p_todo_str)
return p_todo_str
......
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