pmacs3/mode_blame.py

17 lines
453 B
Python
Raw Normal View History

2007-03-06 10:05:38 -05:00
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"