16 @param editor reference to the editor object (QScintilla.Editor) |
16 @param editor reference to the editor object (QScintilla.Editor) |
17 @param parent reference to the parent object (QObject) |
17 @param parent reference to the parent object (QObject) |
18 @return reference to the instanciated lexer object (QsciLexer) |
18 @return reference to the instanciated lexer object (QsciLexer) |
19 """ |
19 """ |
20 try: |
20 try: |
21 if language in ["Python", "Python3", "MicroPython"]: |
21 if language in ["Python", "Python3", "MicroPython", "Cython"]: |
22 from .CompleterPython import CompleterPython |
22 from .CompleterPython import CompleterPython |
23 return CompleterPython(editor, parent) |
23 return CompleterPython(editor, parent) |
24 elif language == "Ruby": |
24 elif language == "Ruby": |
25 from .CompleterRuby import CompleterRuby |
25 from .CompleterRuby import CompleterRuby |
26 return CompleterRuby(editor, parent) |
26 return CompleterRuby(editor, parent) |