pmacs3/mode/shell.py

19 lines
484 B
Python
Raw Normal View History

from mode import Fundamental
2008-09-12 09:31:48 -04:00
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(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