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,9 +1,8 @@
import colout
def theme( item ):
def theme():
p="([rwxs-])"
reg="^([d-])"+p*9+"\s.*$"
colors="blue"+",green"*3+",yellow"*3+",red"*3
styles="normal"+ ",normal,italic,bold"*3
return colout.colorup( item, reg, colors, styles, True)
return [ [reg, colors, styles] ]