QScintilla/Lexers/__init__.py

branch
5_0_x
changeset 809
0f19e2fdce8f
parent 792
a13346916170
equal deleted inserted replaced
800:4daa1d31f4ba 809:0f19e2fdce8f
115 @keyparam pyname name of the pygments lexer to use (string) 115 @keyparam pyname name of the pygments lexer to use (string)
116 @return reference to the instanciated lexer object (QsciLexer) 116 @return reference to the instanciated lexer object (QsciLexer)
117 """ 117 """
118 if not pyname: 118 if not pyname:
119 try: 119 try:
120 if language in ["Python", "Python3"]: 120 if language in ["Python", "Python2", "Python3"]:
121 from .LexerPython import LexerPython 121 from .LexerPython import LexerPython
122 return LexerPython(parent) 122 return LexerPython(parent)
123 elif language == "C++": 123 elif language == "C++":
124 from .LexerCPP import LexerCPP 124 from .LexerCPP import LexerCPP
125 return LexerCPP(parent, 125 return LexerCPP(parent,

eric ide

mercurial