QScintilla/TypingCompleters/__init__.py

branch
5_0_x
changeset 809
0f19e2fdce8f
parent 792
a13346916170
child 945
8cd4d08fa9f6
child 1510
e75ecf2bd9dd
equal deleted inserted replaced
800:4daa1d31f4ba 809:0f19e2fdce8f
15 @param editor reference to the editor object (QScintilla.Editor) 15 @param editor reference to the editor object (QScintilla.Editor)
16 @param parent reference to the parent object (QObject) 16 @param parent reference to the parent object (QObject)
17 @return reference to the instanciated lexer object (QsciLexer) 17 @return reference to the instanciated lexer object (QsciLexer)
18 """ 18 """
19 try: 19 try:
20 if language == "Python": 20 if language in ["Python", "Python2", "Python3"]:
21 from .CompleterPython import CompleterPython 21 from .CompleterPython import CompleterPython
22 return CompleterPython(editor, parent) 22 return CompleterPython(editor, parent)
23 elif language == "Ruby": 23 elif language == "Ruby":
24 from .CompleterRuby import CompleterRuby 24 from .CompleterRuby import CompleterRuby
25 return CompleterRuby(editor, parent) 25 return CompleterRuby(editor, parent)

eric ide

mercurial