19 lines
520 B
Python
19 lines
520 B
Python
|
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
|