def __init__(self, parent=None): """ Constructor @param parent parent widget of this lexer """ QsciLexerD.__init__(self, parent) Lexer.__init__(self) self.commentString = "//" self.streamCommentString = {'start': '/+ ', 'end': ' +/'} self.boxCommentString = {'start': '/* ', 'middle': ' * ', 'end': ' */'}
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 QsciLexerD.keywords(self, kwSet)
def __init__(self, parent=None): """ Constructor @param parent parent widget of this lexer """ QsciLexerD.__init__(self, parent) Lexer.__init__(self) self.commentString = "//" self.streamCommentString = { 'start': '/+ ', 'end': ' +/' } self.boxCommentString = { 'start': '/* ', 'middle': ' * ', 'end': ' */' }
def __init__(self, parent=None): """ Constructor @param parent parent widget of this lexer """ QsciLexerD.__init__(self, parent) Lexer.__init__(self) self.commentString = "//" self.streamCommentString = {'start': '/+ ', 'end': ' +/'} self.boxCommentString = {'start': '/* ', 'middle': ' * ', 'end': ' */'} self.keywordSetDescriptions = [ self.tr("Primary keywords and identifiers"), self.tr("Secondary keywords and identifiers"), self.tr("Documentation comment keywords"), self.tr("Type definitions and aliases"), self.tr("User defined 1"), self.tr("User defined 2"), self.tr("User defined 3"), ]