Tue, 18 Mar 2014 19:23:35 +0100
Fixed an uncaught exception in the JavaScript class browser.
(grafted from 24459ecb4d41e64fb4efb2b2b4b09c630df58468)
Utilities/ClassBrowsers/jsclbr.py | file | annotate | diff | comparison | revisions |
--- a/Utilities/ClassBrowsers/jsclbr.py Tue Mar 18 19:11:44 2014 +0100 +++ b/Utilities/ClassBrowsers/jsclbr.py Tue Mar 18 19:23:35 2014 +0100 @@ -10,6 +10,7 @@ """ import ThirdParty.Jasy.jasy.js.parse.Parser as jsParser +import ThirdParty.Jasy.jasy.js.tokenize.Tokenizer as jsTokenizer import Utilities import Utilities.ClassBrowsers as ClassBrowsers @@ -105,7 +106,10 @@ self.__root = jsParser.parse(self.__source) self.__visit(self.__root) except jsParser.SyntaxError: - # ignore syntax errors + # ignore syntax errors of the parser + pass + except jsTokenizer.ParseError: + # ignore syntax errors of the tokenizer pass return self.__dict