diff -r 1208b0ef8ccb -r d2eb8f0a5bf0 src/eric7/QScintilla/Lexers/LexerXML.py --- a/src/eric7/QScintilla/Lexers/LexerXML.py Mon Nov 07 19:07:21 2022 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerXML.py Tue Nov 08 11:14:44 2022 +0100 @@ -120,3 +120,17 @@ @return string giving the keywords (string) or None """ return QsciLexerXML.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 LexerXML + """ + return LexerXML(parent=parent)