X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=JSDOC%2FScopeParser.js;h=ff4d08925254a5ab1d049b33ff49678753eafbe1;hp=2914d1829abd318d00d25d3de6097b9726dd8632;hb=e5ffdec730738f1cf9dacb62516f1ad85682e1b4;hpb=916df056b7a16402c5258d9f6a3fd0ce865a3ed5 diff --git a/JSDOC/ScopeParser.js b/JSDOC/ScopeParser.js index 2914d18..ff4d089 100644 --- a/JSDOC/ScopeParser.js +++ b/JSDOC/ScopeParser.js @@ -302,13 +302,12 @@ ScopeParser.prototype = { var bn = this.braceNesting; var nts = []; while (true) { - var n = this.ts.lookTok(); - print(n.toString()); - if (!n || n.data == ',') { + + if (!token || token.type == 'VOID' || token.data == ',') { break; } - nts.push(n); - this.ts.nextTok(); + nts.push(token); + token = this.ts.nextTok(); } if (nts.length) { var TS = this.ts;