From 9f77a5b54d33dcf574f815189905a47c529fcbef Mon Sep 17 00:00:00 2001 From: Johann Dreo Date: Thu, 16 May 2013 08:53:13 +0200 Subject: [PATCH] Separate g++ log with blue section lines Every time g++ use "in/at", it starts a new error/warning paragraph. Coloring those lines in blue mades it easier to spot messages. --- colout/colout_g++.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/colout/colout_g++.py b/colout/colout_g++.py index d10e320..250bdc8 100644 --- a/colout/colout_g++.py +++ b/colout/colout_g++.py @@ -8,6 +8,8 @@ def theme(): import gettext import locale + section="blue" + # get g++ version gv = os.popen("g++ -dumpversion").read().strip() @@ -41,9 +43,15 @@ def theme(): # Highlight message start: # path file ext : line : col … [ "(/.*?)/([^/:]+): (In .*)"+qo, - "green", + section, "normal,normal,bold" ], + [ "(/.*?)/([^/:]+): (At .*)", + section, + "normal,normal,bold" ], + + [ _("In file included from"), section ], + # Highlight locations: # path file ext : line : col … [ "(/.*?)/([^/:]+):([0-9]+):*([0-9]*)(.*)",