From: Alan Knowles Date: Wed, 23 Nov 2011 03:56:38 +0000 (+0800) Subject: JSDOC/ScopeNamer.js X-Git-Url: http://git.roojs.org/?p=app.jsdoc;a=commitdiff_plain;h=87d564c2c96e5c91eb930bb4a72411c343ffecbd JSDOC/ScopeNamer.js --- diff --git a/JSDOC/ScopeNamer.js b/JSDOC/ScopeNamer.js index d101516..8627736 100644 --- a/JSDOC/ScopeNamer.js +++ b/JSDOC/ScopeNamer.js @@ -412,9 +412,16 @@ ScopeNamer = XObject.define( // if a symbol alias is documented more than once the last one with the user docs wins // dumpe some invalid symbols.. - if (symbol.alias.split(/[#.]/).length > 2) { + var ptype_ar = symbol.alias.split(/#/); + if (ptype_ar.length > 2) { + // multiple # return; } + if (ptype_ar.length > 1 && ptype_ar[1].split(/\./).length > 1) { + // multiple . after # + return; + } + ScopeNamer.prototype.debugCall("addSymbol : " + symbol.alias ); if (ScopeNamer.symbols.hasSymbol(symbol.alias)) {