Example #1
0
    def keywords( self, setNumber ):
        " Adds True and False into the list of keywords "
        standardSet = QsciLexerPython.keywords( self, setNumber )
        if standardSet is None:
            return standardSet

        return str( standardSet ) + " " + TREAT_AS_KEYWORDS
Example #2
0
    def keywords(self, setNumber):
        " Adds True and False into the list of keywords "
        standardSet = QsciLexerPython.keywords(self, setNumber)
        if standardSet is None:
            return standardSet

        return str(standardSet) + " " + TREAT_AS_KEYWORDS
 def defaultKeywords(self, kwSet):
     """
     Public method to get the default keywords.
     
     @param kwSet number of the keyword set (integer)
     @return string giving the keywords (string) or None
     """
     return QsciLexerPython.keywords(self, kwSet)
 def keywords(self, index):
     """
     Reimplement keyword and add personnal keywords
     """
     keywords = QsciLexerPython.keywords(self, index) or ''
     if index == 1:
         return Settings.instance().readValue(
             key='Editor/keywords-list') + " " + keywords
     return keywords
Example #5
0
 def keywords(self, index):
     keywords = QsciLexerPython.keywords(self, index) or ''
     # primary keywords
     if index == 1:
         return 'SDR SIR sdr'
     # secondary keywords
     if index == 2:
         return 'SIR ' + keywords
     # doc comment keywords
     if index == 3:
         return keywords
     # global classes
     if index == 4:
         return keywords
     return keywords
Example #6
0
 def keywords(self, _set):
     kw = QsciLexerPython.keywords(self, _set)
     return (kw + ' self') if kw else kw
Example #7
0
 def keywords(self, _set):
     kw = QsciLexerPython.keywords(self, _set)
     return (kw + " self") if kw else kw