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.
This commit is contained in:
parent
3354a49395
commit
9f77a5b54d
1 changed files with 9 additions and 1 deletions
|
|
@ -8,6 +8,8 @@ def theme():
|
||||||
import gettext
|
import gettext
|
||||||
import locale
|
import locale
|
||||||
|
|
||||||
|
section="blue"
|
||||||
|
|
||||||
# get g++ version
|
# get g++ version
|
||||||
gv = os.popen("g++ -dumpversion").read().strip()
|
gv = os.popen("g++ -dumpversion").read().strip()
|
||||||
|
|
||||||
|
|
@ -41,9 +43,15 @@ def theme():
|
||||||
# Highlight message start:
|
# Highlight message start:
|
||||||
# path file ext : line : col …
|
# path file ext : line : col …
|
||||||
[ "(/.*?)/([^/:]+): (In .*)"+qo,
|
[ "(/.*?)/([^/:]+): (In .*)"+qo,
|
||||||
"green",
|
section,
|
||||||
"normal,normal,bold" ],
|
"normal,normal,bold" ],
|
||||||
|
|
||||||
|
[ "(/.*?)/([^/:]+): (At .*)",
|
||||||
|
section,
|
||||||
|
"normal,normal,bold" ],
|
||||||
|
|
||||||
|
[ _("In file included from"), section ],
|
||||||
|
|
||||||
# Highlight locations:
|
# Highlight locations:
|
||||||
# path file ext : line : col …
|
# path file ext : line : col …
|
||||||
[ "(/.*?)/([^/:]+):([0-9]+):*([0-9]*)(.*)",
|
[ "(/.*?)/([^/:]+):([0-9]+):*([0-9]*)(.*)",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue