Ejemplo n.º 1
0
 def __init__(self):
     KoLanguageKeywordBase.__init__(self)
     self._style_info.update(
         _block_comment_styles=[
             sci_constants.SCE_PAS_COMMENT,
             sci_constants.SCE_PAS_COMMENT2,
             sci_constants.SCE_PAS_COMMENTLINE,
         ],
         _indent_styles=[sci_constants.SCE_PAS_OPERATOR],
         _variable_styles=[sci_constants.SCE_PAS_IDENTIFIER],
         _lineup_close_styles=[sci_constants.SCE_PAS_OPERATOR],
         _lineup_styles=[sci_constants.SCE_PAS_OPERATOR],
         _keyword_styles=[sci_constants.SCE_PAS_WORD],
         _default_styles=[sci_constants.SCE_PAS_DEFAULT],
         _ignorable_styles=[
             sci_constants.SCE_PAS_COMMENT,
             sci_constants.SCE_PAS_COMMENT2,
             sci_constants.SCE_PAS_COMMENTLINE,
             sci_constants.SCE_PAS_NUMBER,
         ],
     )
     self._fastCharData = FastCharData(
         trigger_char=";",
         style_list=(sci_constants.SCE_PAS_OPERATOR,),
         skippable_chars_by_style={sci_constants.SCE_PAS_OPERATOR: "])"},
         for_check=True,
     )
Ejemplo n.º 2
0
 def __init__(self):
     KoLanguageKeywordBase.__init__(self)
     self._style_info.update(
         _block_comment_styles=[
             sci_constants.SCE_LUA_COMMENTLINE,
             sci_constants.SCE_LUA_COMMENTDOC
         ],
         _indent_styles=[sci_constants.SCE_LUA_OPERATOR],
         _variable_styles=[sci_constants.SCE_LUA_IDENTIFIER],
         _lineup_close_styles=[sci_constants.SCE_LUA_OPERATOR],
         _lineup_styles=[sci_constants.SCE_LUA_OPERATOR],
         _keyword_styles=[
             sci_constants.SCE_LUA_WORD,
             sci_constants.SCE_LUA_WORD2,
             sci_constants.SCE_LUA_WORD3,
             sci_constants.SCE_LUA_WORD4,
             sci_constants.SCE_LUA_WORD5,
             sci_constants.SCE_LUA_WORD6,
             sci_constants.SCE_LUA_WORD7,
             sci_constants.SCE_LUA_WORD8,
         ],
         _default_styles=[sci_constants.SCE_LUA_DEFAULT],
         _ignorable_styles=[
             sci_constants.SCE_LUA_COMMENT,
             sci_constants.SCE_LUA_COMMENTLINE,
             sci_constants.SCE_LUA_COMMENTDOC, sci_constants.SCE_LUA_NUMBER
         ],
     )
 def __init__(self):
     koHTMLLanguageBase.__init__(self)
     # koHTMLLanguageBase already called the language superclass,
     # so KoLanguageKeywordBase doesn't need to.
     KoLanguageKeywordBase.__init__(self, call_super=False)
     self._dedent_style_info = \
         koLanguageServiceBase.koLangSvcStyleInfo(_default_styles=[_sci_constants.SCE_UDL_M_DEFAULT,
                                           _sci_constants.SCE_UDL_TPL_DEFAULT],
                            _keyword_styles=[_sci_constants.SCE_UDL_TPL_WORD])
 def __init__(self):
     koHTMLLanguageBase.__init__(self)
     # koHTMLLanguageBase already called the language superclass,
     # so KoLanguageKeywordBase doesn't need to.
     KoLanguageKeywordBase.__init__(self, call_super=False)
     self._dedent_style_info = \
         koLanguageServiceBase.koLangSvcStyleInfo(_default_styles=[_sci_constants.SCE_UDL_M_DEFAULT,
                                           _sci_constants.SCE_UDL_TPL_DEFAULT],
                            _keyword_styles=[_sci_constants.SCE_UDL_TPL_WORD])        
Ejemplo n.º 5
0
 def __init__(self):
     KoLanguageKeywordBase.__init__(self)
     self._style_info.update(
         _block_comment_styles=[sci_constants.SCE_MATLAB_COMMENT],
         _indent_styles=[sci_constants.SCE_MATLAB_OPERATOR],
         _variable_styles=[sci_constants.SCE_MATLAB_IDENTIFIER],
         _lineup_close_styles=[sci_constants.SCE_MATLAB_OPERATOR],
         _lineup_styles=[sci_constants.SCE_MATLAB_OPERATOR],
         _keyword_styles=[sci_constants.SCE_MATLAB_KEYWORD],
         _default_styles=[sci_constants.SCE_MATLAB_DEFAULT],
         _ignorable_styles=[sci_constants.SCE_MATLAB_COMMENT, sci_constants.SCE_MATLAB_NUMBER],
     )
Ejemplo n.º 6
0
 def __init__(self):
     KoLanguageKeywordBase.__init__(self)
     self._style_info.update(
         _block_comment_styles = [sci_constants.SCE_MATLAB_COMMENT,],
         _indent_styles = [sci_constants.SCE_MATLAB_OPERATOR],
         _variable_styles = [sci_constants.SCE_MATLAB_IDENTIFIER],
         _lineup_close_styles = [sci_constants.SCE_MATLAB_OPERATOR],
         _lineup_styles = [sci_constants.SCE_MATLAB_OPERATOR],
         _keyword_styles = [sci_constants.SCE_MATLAB_KEYWORD],
         _default_styles = [sci_constants.SCE_MATLAB_DEFAULT],
         _ignorable_styles = [sci_constants.SCE_MATLAB_COMMENT,
                              sci_constants.SCE_MATLAB_NUMBER],
         )
Ejemplo n.º 7
0
 def __init__(self):
     KoLanguageKeywordBase.__init__(self)
     self._style_info.update(
         _indent_styles = [sci_constants.SCE_SH_OPERATOR],
         _variable_styles = [sci_constants.SCE_SH_IDENTIFIER,
                             sci_constants.SCE_SH_SCALAR],
         _lineup_close_styles = [sci_constants.SCE_SH_OPERATOR],
         _lineup_styles = [sci_constants.SCE_SH_OPERATOR],
         _multiline_styles = [sci_constants.SCE_SH_STRING,
                              sci_constants.SCE_SH_CHARACTER],
         _keyword_styles = [sci_constants.SCE_SH_WORD],
         _default_styles = [sci_constants.SCE_SH_DEFAULT],
         _ignorable_styles = [sci_constants.SCE_SH_ERROR,
                              sci_constants.SCE_SH_COMMENTLINE,
                              sci_constants.SCE_SH_NUMBER],
         )
Ejemplo n.º 8
0
 def __init__(self):
     KoLanguageKeywordBase.__init__(self)
     self._style_info.update(
         _block_comment_styles = [sci_constants.SCE_PAS_COMMENT,
                                  sci_constants.SCE_PAS_COMMENT2,
                                  sci_constants.SCE_PAS_COMMENTLINE],
         _indent_styles = [sci_constants.SCE_PAS_OPERATOR],
         _variable_styles = [sci_constants.SCE_PAS_IDENTIFIER],
         _lineup_close_styles = [sci_constants.SCE_PAS_OPERATOR],
         _lineup_styles = [sci_constants.SCE_PAS_OPERATOR],
         _keyword_styles = [sci_constants.SCE_PAS_WORD],
         _default_styles = [sci_constants.SCE_PAS_DEFAULT],
         _ignorable_styles = [sci_constants.SCE_PAS_COMMENT,
                              sci_constants.SCE_PAS_COMMENT2,
                              sci_constants.SCE_PAS_COMMENTLINE,
                              sci_constants.SCE_PAS_NUMBER],
         )
     self._fastCharData = \
         FastCharData(trigger_char=";",
                      style_list=(sci_constants.SCE_PAS_OPERATOR, ),
                      skippable_chars_by_style={ sci_constants.SCE_PAS_OPERATOR : "])" },
                      for_check=True)
Ejemplo n.º 9
0
 def __init__(self):
     KoLanguageKeywordBase.__init__(self)
     self._style_info.update(
         _block_comment_styles = [sci_constants.SCE_LUA_COMMENTLINE,
                                  sci_constants.SCE_LUA_COMMENTDOC],
         _indent_styles = [sci_constants.SCE_LUA_OPERATOR],
         _variable_styles = [sci_constants.SCE_LUA_IDENTIFIER],
         _lineup_close_styles = [sci_constants.SCE_LUA_OPERATOR],
         _lineup_styles = [sci_constants.SCE_LUA_OPERATOR],
         _keyword_styles = [sci_constants.SCE_LUA_WORD,
                            sci_constants.SCE_LUA_WORD2,
                            sci_constants.SCE_LUA_WORD3,
                            sci_constants.SCE_LUA_WORD4,
                            sci_constants.SCE_LUA_WORD5,
                            sci_constants.SCE_LUA_WORD6,
                            sci_constants.SCE_LUA_WORD7,
                            sci_constants.SCE_LUA_WORD8,
                            ],
         _default_styles = [sci_constants.SCE_LUA_DEFAULT],
         _ignorable_styles = [sci_constants.SCE_LUA_COMMENT,
                              sci_constants.SCE_LUA_COMMENTLINE,
                              sci_constants.SCE_LUA_COMMENTDOC,
                              sci_constants.SCE_LUA_NUMBER],
         )