36 lines
1.8 KiB
Python
36 lines
1.8 KiB
Python
|
|
def theme(context):
|
|
return context,[
|
|
# Waiting
|
|
["^Waiting for .*$", "red", "bold"],
|
|
[".*Sending.*", "green"],
|
|
# Watches
|
|
["^(Watching) (\S*) (.*)", "yellow", "bold,bold,normal"],
|
|
[".*reloading.$","yellow"],
|
|
# File from python/lib
|
|
["^(File) (/.*/lib/python[^/]*/site-packages/)([^/]*)\S* (first seen) (with mtime [0-9]*.*)$",
|
|
"blue,blue,white,blue,blue", "bold,normal,bold,bold,normal"],
|
|
# File from app (last 3 name highlighted)
|
|
["^(File) (/\S*/)(\S*/\S*/)(\S*) (first seen) (with mtime [0-9]*.*)$",
|
|
"magenta,magenta,white,white,magenta,magenta", "bold,normal,normal,bold,bold,normal"],
|
|
# SQL
|
|
["(.*)(SELECT)(.*)(FROM)(.*)",
|
|
"green", "normal,bold,normal,bold,normal"],
|
|
["(.*)(SELECT)(.*)(FROM)(.*)(WHERE)(.*)",
|
|
"green", "normal,bold,normal,bold,normal,bold,normal"],
|
|
# HTTP
|
|
["\"(GET) (\S*) (HTTP\S*)\" ([0-9]+) (.*)$",
|
|
"green,white,green,green,green", "bold,bold,normal,bold,normal"],
|
|
# Errors
|
|
["(Exception) (while .*) '(.*)' (in) (.*) '(.*)'", "red,red,white,red,red,white", "bold,normal,bold,bold,normal,bold"],
|
|
["(.*Error): (.*) '(.*)'", "red,red,white", "bold,normal,bold"],
|
|
["(django[^:\s]*)\.([^.:\s]*): (.*)", "red","normal,bold,normal"],
|
|
["Traceback.*:","yellow"],
|
|
["During handling.*","yellow"],
|
|
# File, line, in
|
|
[
|
|
"^\s{2}(File \")(/*.*?/)*([^/:]+)(\", line) ([0-9]+)(, in) (.*)$",
|
|
"blue, none, white,blue, yellow,blue",
|
|
"normal,normal,bold, normal,normal,bold"
|
|
],
|
|
]
|