JSDOC/ScopeNamer.js
authorAlan Knowles <alan@roojs.com>
Wed, 9 Nov 2011 09:16:04 +0000 (17:16 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 9 Nov 2011 09:16:04 +0000 (17:16 +0800)
JSDOC/ScopeNamer.js

index fea3492..cfb0ee3 100644 (file)
@@ -378,6 +378,13 @@ ScopeNamer = XObject.define(
               //print("PARSER addSYMBOL : " + symbol.alias);
             ScopeNamer.prototype.debugCall("addSymbol : " + symbol.alias );       
             // if a symbol alias is documented more than once the last one with the user docs wins
+            
+            // dumpe some invalid symbols..
+            if (symbol.split(/[#.]/).length > 2) {
+                return;
+            }
+            
+            
             if (ScopeNamer.symbols.hasSymbol(symbol.alias)) {
                 
                 if (!comment) { // we do not have a comment, and it's registered.