--- a/src/eric7/QScintilla/TypingCompleters/CompleterYaml.py Tue Nov 08 18:18:42 2022 +0100 +++ b/src/eric7/QScintilla/TypingCompleters/CompleterYaml.py Tue Nov 08 19:47:11 2022 +0100 @@ -161,3 +161,17 @@ return True col -= 1 return False + + +def createCompleter(editor, parent=None): + """ + Function to instantiate a typing completer object. + + @param editor reference to the editor object + @type QScintilla.Editor + @param parent reference to the parent object (defaults to None) + @type QObject (optional) + @return reference to the instantiated typing completer object + @rtype CompleterYaml + """ + return CompleterYaml(editor, parent=parent)