Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py

changeset 3441
1b07f996e9ee
parent 3438
29717a5e8b97
child 3447
64fb656bd334
equal deleted inserted replaced
3440:ddcce63ab5cc 3441:1b07f996e9ee
233 "IncludeInSyntaxCheck")) 233 "IncludeInSyntaxCheck"))
234 elif file in jsfiles: 234 elif file in jsfiles:
235 nok, fname, line, error = \ 235 nok, fname, line, error = \
236 Utilities.jsCheckSyntax(file, source) 236 Utilities.jsCheckSyntax(file, source)
237 index = 0 237 index = 0
238 code = source[line - 1] 238 code = source.splitlines()[int(line) - 1] if nok else ""
239 else: 239 else:
240 isPy3 = True 240 isPy3 = True
241 nok, fname, line, index, code, error = \ 241 nok, fname, line, index, code, error = \
242 Utilities.compile(file, source) 242 Utilities.compile(file, source)
243 if nok: 243 if nok:

eric ide

mercurial