Ejemplo n.º 1
0
    def __init__(self, parent=None):
        """
        Constructor
        
        @param parent parent widget of this lexer
        """
        QsciLexerLua.__init__(self, parent)
        Lexer.__init__(self)

        self.commentString = "--"
        self.streamCommentString = {'start': '--[[ ', 'end': ' ]]--'}
Ejemplo n.º 2
0
 def __init__(self, parent=None):
     """
     Constructor
     
     @param parent parent widget of this lexer
     """
     QsciLexerLua.__init__(self, parent)
     Lexer.__init__(self)
     
     self.commentString = "--"
     self.streamCommentString = {
         'start': '--[[ ',
         'end': ' ]]--'
     }
Ejemplo n.º 3
0
 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 QsciLexerLua.keywords(self, kwSet)
Ejemplo n.º 4
0
 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 QsciLexerLua.keywords(self, kwSet)
Ejemplo n.º 5
0
    def __init__(self, parent=None):
        """
        Constructor
        
        @param parent parent widget of this lexer
        """
        QsciLexerLua.__init__(self, parent)
        Lexer.__init__(self)

        self.commentString = "--"
        self.streamCommentString = {'start': '--[[ ', 'end': ' ]]--'}

        self.keywordSetDescriptions = [
            self.tr("Keywords"),
            self.tr("Basic functions"),
            self.tr("String, (table) & math functions"),
            self.tr("Coroutines, I/O & system facilities"),
            self.tr("User defined 1"),
            self.tr("User defined 2"),
            self.tr("User defined 3"),
            self.tr("User defined 4"),
        ]