Refactor themes to avoid imports

Enhancement #9
This commit is contained in:
Johann Dreo 2013-03-24 23:54:02 +01:00
commit 5b52c7eceb
5 changed files with 39 additions and 37 deletions

View file

@ -1,8 +1,8 @@
import colout
def theme( item ):
item = colout.colorup( item, '[{}]' )
item = colout.colorup( item, '[:,]', "blue" )
item = colout.colorup( item, '".*"', "green" )
return item
def theme():
return [
[ '[{}]' ],
[ '[:,]', "blue" ],
[ '".*"', "green" ]
]