X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=JSDOC%2FCompressWhite.js;h=8dc67a26025081dc421081e1b0196992a8b22661;hp=e8331bbabf4110d79b273f0dcfa67ee2938625a1;hb=3282a2112d0ebbf3e8a790adf586b93ca174778b;hpb=28cab37207a0fb91c5b697c1a8dd73727d850f12 diff --git a/JSDOC/CompressWhite.js b/JSDOC/CompressWhite.js index e8331bb..8dc67a2 100644 --- a/JSDOC/CompressWhite.js +++ b/JSDOC/CompressWhite.js @@ -210,24 +210,21 @@ CompressWhite = function (ts, packer) out.length = ts.slen; // prealloc. out = ''; while (true) { - var tok = ts.next(); + var tok = ts.nextTok(); if (!tok) { break; } - if (tok._isWS) { - continue; - } - if (tok.isTypeN(Script.TOKidentifier) && tok.identifier && tok.identifier.mungedValue.length) { + if (tok.type == "NAME" && tok.identifier && tok.identifier.mungedValue.length) { //f.write(tok.identifier.mungedValue); - out +=tok.identifier.mungedValue; + out += tok.identifier.mungedValue; continue; } // at this point we can apply a text translation kit... - if (tok.type == 'string') { + if (tok.type == 'STRN') && (tok.name== 'DOUBLE_QUOTE') { if (packer.stringHandler) { out += packer.stringHandler(tok); continue;