X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JSDOC%2FScopeParser.js;h=65d60f3f6a4a5e71617b1361fe822dfaa3cefa7e;hb=cf19a51fbc45888394a0854c4cc8abc5015c9063;hp=bc695efd0ae46bd150bb3a6200c1da82f4dbd265;hpb=dd0f1dcde37a49773203cac9df1e475c17586416;p=gnome.introspection-doc-generator diff --git a/JSDOC/ScopeParser.js b/JSDOC/ScopeParser.js index bc695ef..65d60f3 100644 --- a/JSDOC/ScopeParser.js +++ b/JSDOC/ScopeParser.js @@ -521,10 +521,11 @@ ScopeParser.prototype = { if (symbol == "eval") { // look back one and see if we can find a comment!!! - if (this.ts.look(-1).type == "COMM") { + //if (this.ts.look(-1).type == "COMM") { + if (token.prefix && token.prefix.match('/eval/')) { // look for eval:var:noreplace\n var _t = this; - this.ts.look(-1).data.replace(/eval:var:([a-z_]+)/ig, function(m, a) { + token.prefix.replace(/eval:var:([a-z_]+)/ig, function(m, a) { var hi = _t.getIdentifier(a, thisScope, token); // println("PROTECT "+a+" from munge" + (hi ? "FOUND" : "MISSING")); @@ -767,10 +768,10 @@ ScopeParser.prototype = { if (this.mode == 'BUILDING_SYMBOL_TREE') { if (symbol == "eval") { - if (this.ts.look(-1).type == 'COMM') { + if (token.prefix && token.prefix.match('/eval/')) { // look for eval:var:noreplace\n var _t = this; - this.ts.look(-1).data.replace(/eval:var:([a-z]+)/ig, function(m, a) { + token.prefix.replace(/eval:var:([a-z]+)/ig, function(m, a) { var hi = _t.getIdentifier(a, currentScope, token); //println("PROTECT "+a+" from munge" + (hi ? "FOUND" : "MISSING")); if (hi) {