pmacs3/mode_blame.py

17 lines
453 B
Python

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"