예제 #1
0
 def __init__(self):
     KoUDLLanguage.__init__(self)
     KoLanguageBaseDedentMixin.__init__(self)
     
     self.matchingSoftChars = {"(": (")", None),
                               "{": ("}", None),
                               "[": ("]", None),
                               '"': ('"', self.softchar_accept_matching_double_quote)
                               }            
     
     self._setupIndentCheckSoftChar()
예제 #2
0
    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()
예제 #3
0
    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()
예제 #4
0
    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)
예제 #5
0
    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)
예제 #6
0
 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 __init__(self):
     KoUDLLanguage.__init__(self)
     KoLanguageBaseDedentMixin.__init__(self)
예제 #8
0
 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
예제 #9
0
 def __init__(self):
     KoUDLLanguage.__init__(self)
     KoLanguageBaseDedentMixin.__init__(self)