def observe(self, subject, topic, data): if topic == "phpCommentStyle": self.commentDelimiterInfo['line'] = self.__prefs.getStringPref( "phpCommentStyle").split(",") self._commenter = None else: KoUDLLanguage.observe(self, subject, topic, data)
def __init__(self): KoUDLLanguage.__init__(self) KoLanguageBaseDedentMixin.__init__(self) self.matchingSoftChars = {"(": (")", None), "{": ("}", None), "[": ("]", None), '"': ('"', self.softchar_accept_matching_double_quote) } self._setupIndentCheckSoftChar()
def __init__(self): KoUDLLanguage.__init__(self) KoLanguageBaseDedentMixin.__init__(self) # get the comment prefs and set that, then observe for pref changes self.__prefs = components.classes["@activestate.com/koPrefService;1"].\ getService(components.interfaces.koIPrefService).prefs self.commentDelimiterInfo['line'] = self.__prefs.getStringPref("phpCommentStyle").split(",") self._observer = xpcom.server.WrapObject(self, components.interfaces.nsIObserver) self.__prefs.prefObserverService.addObserver(self._observer, "phpCommentStyle", 0) self._setupIndentCheckSoftChar()
def __init__(self): KoUDLLanguage.__init__(self) KoLanguageBaseDedentMixin.__init__(self) # get the comment prefs and set that, then observe for pref changes self.__prefs = components.classes["@activestate.com/koPrefService;1"].\ getService(components.interfaces.koIPrefService).prefs self.commentDelimiterInfo['line'] = self.__prefs.getStringPref( "phpCommentStyle").split(",") self._observer = xpcom.server.WrapObject( self, components.interfaces.nsIObserver) self.__prefs.prefObserverService.addObserver(self._observer, "phpCommentStyle", 0) self._setupIndentCheckSoftChar()
def __init__(self): KoUDLLanguage.__init__(self) KoLanguageBaseDedentMixin.__init__(self) # get the comment prefs and set that, then observe for pref changes self.__prefs = components.classes["@activestate.com/koPrefService;1"].\ getService(components.interfaces.koIPrefService).prefs self.commentDelimiterInfo['line'] = self.__prefs.getStringPref("phpCommentStyle").split(",") self._observer = xpcom.server.WrapObject(self, components.interfaces.nsIObserver) self.__prefs.prefObserverService.addObserver(self._observer, "phpCommentStyle", 0) self._setupIndentCheckSoftChar() self._fastCharData = \ FastCharData(trigger_char=";", style_list=(sci_constants.SCE_UDL_SSL_OPERATOR,), skippable_chars_by_style={ sci_constants.SCE_UDL_SSL_OPERATOR : "])",}, for_check=True)
def getStringStyles(self): if self._total_string_styles is None: scin = components.interfaces.ISciMoz self._total_string_styles = [scin.SCE_UDL_CSS_DEFAULT, scin.SCE_UDL_CSS_COMMENT, scin.SCE_UDL_CSS_NUMBER, scin.SCE_UDL_CSS_STRING, scin.SCE_UDL_CSS_WORD, scin.SCE_UDL_CSS_IDENTIFIER, scin.SCE_UDL_CSS_OPERATOR, ] + KoUDLLanguage.getStringStyles(self) return self._total_string_styles
def __init__(self): KoUDLLanguage.__init__(self) KoLanguageBaseDedentMixin.__init__(self) # get the comment prefs and set that, then observe for pref changes self.__prefs = components.classes["@activestate.com/koPrefService;1"].\ getService(components.interfaces.koIPrefService).prefs self.commentDelimiterInfo['line'] = self.__prefs.getStringPref( "phpCommentStyle").split(",") self._observer = xpcom.server.WrapObject( self, components.interfaces.nsIObserver) self.__prefs.prefObserverService.addObserver(self._observer, "phpCommentStyle", 0) self._setupIndentCheckSoftChar() self._fastCharData = \ FastCharData(trigger_char=";", style_list=(sci_constants.SCE_UDL_SSL_OPERATOR,), skippable_chars_by_style={ sci_constants.SCE_UDL_SSL_OPERATOR : "])",}, for_check=True)
def getStringStyles(self): if self._total_string_styles is None: scin = components.interfaces.ISciMoz self._total_string_styles = [ scin.SCE_UDL_CSS_DEFAULT, scin.SCE_UDL_CSS_COMMENT, scin.SCE_UDL_CSS_NUMBER, scin.SCE_UDL_CSS_STRING, scin.SCE_UDL_CSS_WORD, scin.SCE_UDL_CSS_IDENTIFIER, scin.SCE_UDL_CSS_OPERATOR, ] + KoUDLLanguage.getStringStyles(self) return self._total_string_styles
def __init__(self): KoUDLLanguage.__init__(self) self.softchar_accept_matching_single_quote = self._filter_quotes_in_plaintext_context self.softchar_accept_matching_double_quote = self._filter_quotes_in_plaintext_context
def observe(self, subject, topic, data): if topic == "phpCommentStyle": self.commentDelimiterInfo['line'] = self.__prefs.getStringPref("phpCommentStyle").split(",") self._commenter = None else: KoUDLLanguage.observe(self, subject, topic, data)
def __init__(self): KoUDLLanguage.__init__(self) KoLanguageBaseDedentMixin.__init__(self)