pmacs3/mode/shell.py

19 lines
520 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 = [
#RegionRule(r'shell_input', r'^(?:sh$|sh>)', ShGrammar, '\n$'),
#PatternRule(r'shell_mesg', r'^[A-Za-z].*$'),
]
class Shell(mode.Fundamental):
modename = 'Shell'
#grammar = ShellGrammar()
colors = {
#'shell_mesg': ('red', 'default', 'bold'),
#'shell_input.start': ('red', 'default', 'bold'),
}
install = Shell.install