def __init__(self, parent=None): """ Constructor @param parent parent widget of this lexer """ QsciLexerIDL.__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 QsciLexerIDL.keywords(self, kwSet)
def __init__(self, parent=None): """ Constructor @param parent parent widget of this lexer """ QsciLexerIDL.__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 """ QsciLexerIDL.__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("Global classes and typedefs"), self.tr("Preprocessor definitions"), self.tr("Task marker and error marker keywords"), ]