Beispiel #1
0
def theme( item ):
    item = colout.colorup( item,
            "^(Scanning dependencies of target)(.*)$",
            "magenta,blue", "normal,bold" )
    item = colout.colorup( item,
            "^(Linking \w+ \w+ library)(\s.*/)(\w+.[aso]+)$",
            "magenta", "normal,normal,bold" )
    item = colout.colorup( item,
            "^\[\s*[0-9]+%\]\s(Built target)(\s.*)$",
            "cyan,blue", "normal,bold")
    item = colout.colorup( item,
            "^\[\s*[0-9]+%\]\s(Building \w* object)(\s.*/)(\w+.cpp)(.o)$",
            "green", "normal,normal,bold,normal")

    percs={
            "\s":("magenta","normal"),
            "1":("magenta","normal"),
            "2":("magenta","normal"),
            "3":("blue","normal"),
            "4":("blue","normal"),
            "5":("cyan","normal"),
            "6":("cyan","normal"),
            "7":("green","normal"),
            "8":("yellow","normal"),
            "9":("red","normal"),
            "10":("red","bold"),
            }
    for p in percs:
        item = colout.colorup( item, "^(\[)\s*("+p+"[0-9]%)(\])", "black,"+percs[p][0]+",black", percs[p][1] )

    return item
Beispiel #2
0
def theme( item ):
    item = colout.colorup( item, "error", "red", "bold" )
    item = colout.colorup( item, "warning", "magenta", "bold" )
    item = colout.colorup( item, "\[-W.*\]", "magenta", "normal" )
    item = colout.colorup( item, "note", "blue", "bold" )
    item = colout.colorup( item, ":([0-9]+):[0-9]*", "yellow", "normal" )
    item = colout.colorup( item, "^((/\w+)+)\.(h|cpp)", "white", "normal" )
    item = colout.colorup( item, "'(.*)'", "blue", "normal" )

    return item
Beispiel #3
0
def theme( item ):
    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)
Beispiel #4
0
def theme( item ):
    item = colout.colorup( item, '[{}]' )
    item = colout.colorup( item, '[:,]', "blue" )
    item = colout.colorup( item, '".*"', "green" )
    return item