Support more coloring around gcc

Signed-off-by: Justin Lecher <jlec@gentoo.org>
This commit is contained in:
Justin Lecher 2016-12-27 12:27:29 +00:00
parent 021439191c
commit 38d8cd75fe
No known key found for this signature in database
GPG Key ID: E9402A79B03529A2
2 changed files with 10 additions and 6 deletions

View File

@ -1,7 +1,7 @@
#
regexp=\bgcc\b
colours=yellow
count=more
regexp=\b(g?cc|[gc]\+\+|g?as|ld)\b
colours=white bold
count=once
.........
#
regexp=^[^:\s]*?:\d+:
@ -15,6 +15,10 @@ count=once
regexp=\`[A-Za-z0-9_():&*]+( const)?\'
colours=magenta
.........
# compilation method modifiers
regexp=\s\-(O\d?|f\S+|pthread|g\S*|c|W\S,\S+)\b
colours=yellow
.........
# -O
regexp=\-O\d
colours=green
@ -27,7 +31,7 @@ colours=yellow
# stderr to grcat
#
# warning
regexp=warning:.*
regexp=[Ww]arning[:\b]
colours=white
.........
regexp=warning:
@ -35,7 +39,7 @@ colours=bold yellow
count=once
.........
# error
regexp=error:.*
regexp=[Ee]rror[:\b]
colours=bold white
.........
regexp=error:

View File

@ -19,7 +19,7 @@ conf.ping
conf.traceroute
# gcc command
(^|[/\w\.]+/)g?cc\s
(^|[/\w\.]+/)(g?cc|[gc]\+\+)\s
conf.gcc
# make command