--- a/src/eric7/QScintilla/Lexers/LexerPOV.py Mon Nov 07 19:07:21 2022 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerPOV.py Tue Nov 08 11:14:44 2022 +0100 @@ -77,3 +77,17 @@ @return string giving the keywords (string) or None """ return QsciLexerPOV.keywords(self, kwSet) + + +def createLexer(variant="", parent=None): + """ + Function to instantiate a lexer object. + + @param variant name of the language variant + @type str + @param parent parent widget of this lexer + @type QObject + @return instantiated lexer object + @rtype LexerPOV + """ + return LexerPOV(parent=parent)