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", "Cython"]: |
21 if language in ["Python", "Python3", "MicroPython", "Cython"]: |
22 from .CompleterPython import CompleterPython |
22 from .CompleterPython import CompleterPython # __IGNORE_WARNING_I101__ |
23 |
23 |
24 return CompleterPython(editor, parent) |
24 return CompleterPython(editor, parent) |
25 elif language == "Ruby": |
25 elif language == "Ruby": |
26 from .CompleterRuby import CompleterRuby |
26 from .CompleterRuby import CompleterRuby # __IGNORE_WARNING_I101__ |
27 |
27 |
28 return CompleterRuby(editor, parent) |
28 return CompleterRuby(editor, parent) |
29 elif language == "YAML": |
29 elif language == "YAML": |
30 from .CompleterYaml import CompleterYaml |
30 from .CompleterYaml import CompleterYaml # __IGNORE_WARNING_I101__ |
31 |
31 |
32 return CompleterYaml(editor, parent) |
32 return CompleterYaml(editor, parent) |
33 else: |
33 else: |
34 return None |
34 return None |
35 except ImportError: |
35 except ImportError: |