225 if kwSet == 1: |
233 if kwSet == 1: |
226 if self.language() in ["Python", "Python2"]: |
234 if self.language() in ["Python", "Python2"]: |
227 keywords = ("and as assert break class continue def del elif " |
235 keywords = ("and as assert break class continue def del elif " |
228 "else except exec finally for from global if " |
236 "else except exec finally for from global if " |
229 "import in is lambda not or pass print raise " |
237 "import in is lambda not or pass print raise " |
230 "return try while with yield cdef cimport cpdef") |
238 "return try while with yield") |
231 elif self.language() == "Python3": |
239 elif self.language() == "Python3": |
232 keywords = ("False None True and as assert break class " |
240 keywords = ("False None True and as assert break class " |
233 "continue def del elif else except finally for " |
241 "continue def del elif else except finally for " |
234 "from global if import in is lambda nonlocal not " |
242 "from global if import in is lambda nonlocal not " |
235 "or pass raise return try while with yield cdef " |
243 "or pass raise return try while with yield") |
236 "cimport cpdef") |
244 elif self.language() == "Cython": |
|
245 keywords = ("False None True and as assert break class " |
|
246 "continue def del elif else except finally for " |
|
247 "from global if import in is lambda nonlocal not " |
|
248 "or pass raise return try while with yield " |
|
249 "cdef cimport cpdef ctypedef") |
237 else: |
250 else: |
238 keywords = QsciLexerPython.keywords(self, kwSet) |
251 keywords = QsciLexerPython.keywords(self, kwSet) |
239 else: |
252 else: |
240 keywords = QsciLexerPython.keywords(self, kwSet) |
253 keywords = QsciLexerPython.keywords(self, kwSet) |
241 |
254 |