X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=JSDOC%2FScopeParser.js;h=bc630740c42ebd8be150d38dc17be978f0f587f6;hp=09f4132b19fe3cb113b59a03253999f52468dac4;hb=ef55015b78daa5a5284b3053c557d08c65d2828c;hpb=e828a261e045fb6258ac61aaa940ef39d1aa8a8a diff --git a/JSDOC/ScopeParser.js b/JSDOC/ScopeParser.js index 09f4132..bc63074 100644 --- a/JSDOC/ScopeParser.js +++ b/JSDOC/ScopeParser.js @@ -538,7 +538,7 @@ ScopeParser.prototype = { print(JSON.stringify(token, null,4)); // look back one and see if we can find a comment!!! //if (this.ts.look(-1).type == "COMM") { - if (token.prefix && token.prefix.match('/eval/')) { + if (token.prefix && token.prefix.match(/eval/)) { // look for eval:var:noreplace\n var _t = this; token.prefix.replace(/eval:var:([a-z_]+)/ig, function(m, a) { @@ -787,10 +787,14 @@ ScopeParser.prototype = { if (token.name == "EVAL") { print(JSON.stringify(token,null,4)); - if (token.prefix && token.prefix.match('/eval/')) { + if (token.prefix && token.prefix.match(/eval:/)) { // look for eval:var:noreplace\n var _t = this; token.prefix.replace(/eval:var:([a-z]+)/ig, function(m, a) { + + print("PROTECT: " + a); + + var hi = _t.getIdentifier(a, currentScope, token); //println("PROTECT "+a+" from munge" + (hi ? "FOUND" : "MISSING")); if (hi) {