Color code after a "note: candidate is/are:"
This commit is contained in:
parent
1968aa0197
commit
3f108692e8
1 changed files with 6 additions and 2 deletions
|
|
@ -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" ]
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue