src/eric7/QScintilla/TypingCompleters/CompleterYaml.py

branch
eric7
changeset 9493
aeaa6bf49831
parent 9473
3f23dbf37dbe
child 9653
e67609152c5e
--- 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)

eric ide

mercurial