pmacs3/mode/shell.py

19 lines
479 B
Python
Raw Normal View History

2008-09-12 09:31:48 -04:00
import color, mode
from lex import Grammar, PatternRule, RegionRule
from mode.sh import ShGrammar
class ShellGrammar(Grammar):
rules = [
PatternRule(r'shell_input', r'^>>>.*$'),
PatternRule(r'shell_mesg', r'^===.*$'),
2008-09-12 09:31:48 -04:00
]
class Shell(mode.Fundamental):
name = 'Shell'
grammar = ShellGrammar()
colors = {
'shell_mesg': ('green', 'default', 'bold'),
'shell_input': ('cyan', 'default', 'bold'),
2008-09-12 09:31:48 -04:00
}
install = Shell.install