import color, method, mode, lex, lex_blame, re class Blame(mode.Fundamental): def __init__(self, w): mode.Fundamental.__init__(self, w) self.grammar = lex_blame.BlameGrammar() self.lexer = lex.Lexer(self.grammar) self.colors = { 'metadata': color.build('red', 'default', 'bold'), #'data': color.build('green', 'default', 'bold'), } def name(self): return "Blame"