37 lines
1.5 KiB
Python
37 lines
1.5 KiB
Python
|
import commands, os.path, sets, sys
|
||
|
|
||
|
import color, default, mode, lex, lex_sh, method, tab_sh
|
||
|
|
||
|
class Sh(mode.Fundamental):
|
||
|
def __init__(self, w):
|
||
|
mode.Fundamental.__init__(self, w)
|
||
|
|
||
|
self.grammar = lex_sh.ShGrammar()
|
||
|
self.lexer = lex.Lexer(self.grammar)
|
||
|
|
||
|
self.colors = {
|
||
|
'builtin': color.build('cyan', 'default', 'bold'),
|
||
|
'method': color.build('magenta', 'default', 'bold'),
|
||
|
'reserved': color.build('magenta', 'default', 'bold'),
|
||
|
#'delimiter': color.build('magenta', 'default', 'bold'),
|
||
|
'delimiter': color.build('default', 'default', 'bold'),
|
||
|
'operator': color.build('magenta', 'default', 'bold'),
|
||
|
'redirection': color.build('blue', 'default', 'bold'),
|
||
|
'string1': color.build('green', 'default'),
|
||
|
'string2': color.build('green', 'default'),
|
||
|
'eval': color.build('cyan', 'default', 'bold'),
|
||
|
'comment': color.build('red', 'default'),
|
||
|
'continuation': color.build('red', 'default'),
|
||
|
'variable0': color.build('yellow', 'default', 'bold'),
|
||
|
'variable1': color.build('yellow', 'default', 'bold'),
|
||
|
'variable2': color.build('yellow', 'default', 'bold'),
|
||
|
'variable3': color.build('yellow', 'default', 'bold'),
|
||
|
}
|
||
|
|
||
|
#self.highlighter.lex_buffer()
|
||
|
#self.get_regions()
|
||
|
self.tabber = tab_sh.ShTabber(self)
|
||
|
|
||
|
def name(self):
|
||
|
return "Sh"
|