Plugins/CheckerPlugins/SyntaxChecker/jsCheckSyntax.py

changeset 6650
1dd52aa8897c
parent 6645
ad476851d7e0
equal deleted inserted replaced
6649:f1b3a73831c9 6650:1dd52aa8897c
170 @return dictionary with the keys 'error' and 'warnings' which 170 @return dictionary with the keys 'error' and 'warnings' which
171 hold a list containing details about the error/ warnings 171 hold a list containing details about the error/ warnings
172 (file name, line number, column, codestring (only at syntax 172 (file name, line number, column, codestring (only at syntax
173 errors), the message, a list with arguments for the message) 173 errors), the message, a list with arguments for the message)
174 """ 174 """
175 import jasy.js.parse.Parser as jsParser 175 import jasy.script.parse.Parser as jsParser
176 import jasy.js.tokenize.Tokenizer as jsTokenizer 176 import jasy.script.tokenize.Tokenizer as jsTokenizer
177 177
178 codestring = normalizeCode(codestring) 178 codestring = normalizeCode(codestring)
179 179
180 try: 180 try:
181 jsParser.parse(codestring, file) 181 jsParser.parse(codestring, file)

eric ide

mercurial