Color the g++ command line call
Useful when your build system shows the commad line. For example, set VERBOSE=1 with make.
This commit is contained in:
parent
483bb886d7
commit
b9176eab52
1 changed files with 13 additions and 0 deletions
|
|
@ -34,6 +34,19 @@ def theme():
|
|||
qc = "'"
|
||||
|
||||
return [
|
||||
# Command line
|
||||
[ "[/\s]([cg]\+\+-*[0-9]*\.*[0-9]*)", "white", "bold" ],
|
||||
[ "\s(\-D)(\s*[^\s]+\s)", "none,green", "normal,bold" ],
|
||||
[ "\s-g\s", "green", "normal" ],
|
||||
[ "\s-O[0-4]*\s", "green", "normal" ],
|
||||
[ "\s-[Wf][^\s]*", "magenta", "normal" ],
|
||||
[ "\s(-I)(/*[^\s]+/)([^/\s]+)", "none,blue", "normal,normal,bold" ],
|
||||
[ "\s(-L)(/*[^\s]+/)([^/\s]+)", "none,cyan", "normal,normal,bold" ],
|
||||
[ "\s(-l)([^/\s]+)", "none,cyan", "normal,bold" ],
|
||||
[ "\s-[oc]", "red", "bold" ],
|
||||
[ "\s(-+std)=*([^s]+)", "red", "normal,bold" ],
|
||||
|
||||
# Important messages
|
||||
[ _("error: "), "red", "bold" ],
|
||||
[ _("fatal error: "), "red", "bold" ],
|
||||
[ _("warning: "), "magenta", "bold" ],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue