colout/colout/colout_javac.py
nojhan e499f40f7d Bring global context variables to the themes.
Encapsulate global variables in the `context` dictionary.
Pass the context through the called themes, that can thus change the configuration.
2014-04-25 13:50:51 +02:00

15 lines
688 B
Python

#encoding: utf-8
def theme(context):
style="monokai"
return context,[
[ "^(.*\.java):([0-9]+):\s*(warning:.*)$", "white,yellow,magenta", "normal,normal,bold" ],
[ "^(.*\.java):([0-9]+):(.*)$", "white,yellow,red", "normal,normal,bold" ],
[ "^(symbol|location)\s*:\s*(.*)$", "blue,Java", "bold,"+style ],
[ "^(found)\s*:\s*(.*)", "red,Java", "bold,"+style ],
[ "^(required)\s*:\s*(.*)", "green,Java", "bold,"+style ],
[ "^\s*\^$", "cyan", "bold" ],
[ "^\s+.*$", "Java", style ],
[ "[0-9]+ error[s]*", "red", "bold" ],
[ "[0-9]+ warning[s]*", "magenta", "bold" ],
]