From 3f108692e8b2c1eccf36e2e8d67b54d8d51efad3 Mon Sep 17 00:00:00 2001 From: Johann Dreo Date: Thu, 23 May 2013 14:45:03 +0200 Subject: [PATCH] Color code after a "note: candidate is/are:" --- colout/colout_g++.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/colout/colout_g++.py b/colout/colout_g++.py index 250bdc8..d86b9e7 100644 --- a/colout/colout_g++.py +++ b/colout/colout_g++.py @@ -36,7 +36,6 @@ def theme(): return [ [ _("error: "), "red", "bold" ], [ _("warning: "), "magenta", "bold" ], - [ _("note: "), "blue", "bold" ], # [-Wflag] [ "\[-W.*\]", "magenta"], @@ -59,6 +58,11 @@ def theme(): "normal,normal,normal,normal" ], # source code in single quotes - [ qo+"(.*?)"+qc, "Cpp", "monokai" ] + [ qo+"(.*?)"+qc, "Cpp", "monokai" ], + + # source code after a "note: candidate are/is:" + [ _("note: ")+"((?!.*(candidate|"+qo+"|"+qc+")).*)$", "Cpp", "monokai" ], + # after the code part, to avoid matching ANSI escape chars + [ _("note: "), "green", "normal" ] ]