Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheck.py

changeset 3630
e32c3cec5d7e
parent 3544
431c842fd09a
child 3635
fc024806236d
equal deleted inserted replaced
3629:98e90f613114 3630:e32c3cec5d7e
101 101
102 # It also encode the code back to avoid 'Encoding declaration in 102 # It also encode the code back to avoid 'Encoding declaration in
103 # unicode string' exception on Python2 103 # unicode string' exception on Python2
104 codestring = normalizeCode(codestring) 104 codestring = normalizeCode(codestring)
105 105
106 # TODO: check for lines starting with VCS conflict markers
107 # (7 * c for c in "<>=|") and report as 'error' like syntax check
108
106 if filename.endswith('.ptl'): 109 if filename.endswith('.ptl'):
107 try: 110 try:
108 import quixote.ptl_compile 111 import quixote.ptl_compile
109 except ImportError: 112 except ImportError:
110 return [{'error': (filename, 0, 0, '', 113 return [{'error': (filename, 0, 0, '',

eric ide

mercurial