Fixed an uncaught exception in the JavaScript class browser.

Tue, 18 Mar 2014 19:23:35 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 18 Mar 2014 19:23:35 +0100
changeset 3404
24459ecb4d41
parent 3400
57fe9186c2df
child 3406
b3612f0fbf55

Fixed an uncaught exception in the JavaScript class browser.

Utilities/ClassBrowsers/jsclbr.py file | annotate | diff | comparison | revisions
diff -r 57fe9186c2df -r 24459ecb4d41 Utilities/ClassBrowsers/jsclbr.py
--- a/Utilities/ClassBrowsers/jsclbr.py	Tue Mar 18 19:04:54 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

eric ide

mercurial