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, )
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 computeIndent(self, scimoz, indentStyle, continueComments): if continueComments: return KoLanguageKeywordBase.computeIndent(self, scimoz, indentStyle, continueComments) calculatedData = self.getTokenDataForComputeIndent(scimoz, self._style_info) indent = self._computeIndent(scimoz, indentStyle, continueComments, self._style_info, calculatedData) if indent is not None: return indent return KoLanguageKeywordBase.computeIndent(self, scimoz, indentStyle, continueComments, calculatedData=calculatedData)
def computeIndent(self, scimoz, indentStyle, continueComments): if continueComments: return KoLanguageKeywordBase.computeIndent(self, scimoz, indentStyle, continueComments) calculatedData = self.getTokenDataForComputeIndent(scimoz, self._style_info) indent = self._computeIndent(scimoz, indentStyle, continueComments, self._style_info, calculatedData) if indent is not None: return indent return KoLanguageKeywordBase.computeIndent(self, scimoz, indentStyle, continueComments, calculatedData=calculatedData)
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])
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], )
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], )
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], )
def computeIndent(self, scimoz, indentStyle, continueComments): res = KoLanguageKeywordBase._computeIndent(self, scimoz, indentStyle, continueComments, self._dedent_style_info) if res: return res return koHTMLLanguageBase._computeIndent(self, scimoz, indentStyle, continueComments, self._dedent_style_info)
def keyPressed(self, ch, scimoz): try: style_info = self._dedent_style_info res = KoLanguageKeywordBase._keyPressedAux(self, ch, scimoz, style_info) if res: return except: log.exception("Problem in KoLanguageKeywordBase._keyPressedAux") return koHTMLLanguageBase.keyPressed(self, ch, scimoz)
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)
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 computeIndent(self, scimoz, indentStyle, continueComments): res = KoLanguageKeywordBase._computeIndent(self, scimoz, indentStyle, continueComments, self._dedent_style_info) if res: return res return koHTMLLanguageBase._computeIndent(self, scimoz, indentStyle, continueComments, self._dedent_style_info)