eric6/QScintilla/TypingCompleters/__init__.py

changeset 8131
f2129bb79269
parent 7923
91e843545d9a
equal deleted inserted replaced
8130:5fe4ff181b68 8131:f2129bb79269
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)

eric ide

mercurial