159 while col >= 0: |
159 while col >= 0: |
160 if txt[col] == "#": |
160 if txt[col] == "#": |
161 return True |
161 return True |
162 col -= 1 |
162 col -= 1 |
163 return False |
163 return False |
|
164 |
|
165 |
|
166 def createCompleter(editor, parent=None): |
|
167 """ |
|
168 Function to instantiate a typing completer object. |
|
169 |
|
170 @param editor reference to the editor object |
|
171 @type QScintilla.Editor |
|
172 @param parent reference to the parent object (defaults to None) |
|
173 @type QObject (optional) |
|
174 @return reference to the instantiated typing completer object |
|
175 @rtype CompleterYaml |
|
176 """ |
|
177 return CompleterYaml(editor, parent=parent) |