projects
/
gnome.introspection-doc-generator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e18bfc1
)
JSDOC/CompressWhite.js
author
Alan Knowles
<alan@roojs.com>
Mon, 23 Sep 2013 04:20:14 +0000
(12:20 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 23 Sep 2013 04:20:14 +0000
(12:20 +0800)
JSDOC/CompressWhite.js
patch
|
blob
|
history
diff --git
a/JSDOC/CompressWhite.js
b/JSDOC/CompressWhite.js
index
249afe7
..
50d7476
100644
(file)
--- a/
JSDOC/CompressWhite.js
+++ b/
JSDOC/CompressWhite.js
@@
-274,8
+274,6
@@
const CompressWhite = function (ts, packer, keepWhite)
try { out.length = ts.slen; } catch (e) {} // prealloc.
out = '';
try { out.length = ts.slen; } catch (e) {} // prealloc.
out = '';
- print("CW: " +out);
-
var tok;
while (true) {
var tok;
while (true) {
@@
-293,7
+291,7
@@
const CompressWhite = function (ts, packer, keepWhite)
if (tok.type == "NAME" && tok.identifier
&& tok.identifier.mungedValue && tok.identifier.mungedValue.length) {
//f.write(tok.identifier.mungedValue);
if (tok.type == "NAME" && tok.identifier
&& tok.identifier.mungedValue && tok.identifier.mungedValue.length) {
//f.write(tok.identifier.mungedValue);
- print("MUNGED: " + tok.identifier.mungedValue);
+
//
print("MUNGED: " + tok.identifier.mungedValue);
out += tok.identifier.mungedValue;
continue;
}
out += tok.identifier.mungedValue;
continue;
}
@@
-303,22
+301,17
@@
const CompressWhite = function (ts, packer, keepWhite)
if ((tok.type == 'STRN') && (tok.name== 'DOUBLE_QUOTE')) {
if (packer && packer.stringHandler) {
out += packer.stringHandler(tok);
if ((tok.type == 'STRN') && (tok.name== 'DOUBLE_QUOTE')) {
if (packer && packer.stringHandler) {
out += packer.stringHandler(tok);
- print("STR: " +out);
continue;
}
}
continue;
}
}
-
+
out += tok.outData !== false ? tok.outData : tok.data;
out += tok.outData !== false ? tok.outData : tok.data;
- print("TOK: " +out);
if ((tok.outData == ';') && (out.length - outoff > 255)) {
outoff = out.length;
out += "\n";
if ((tok.outData == ';') && (out.length - outoff > 255)) {
outoff = out.length;
out += "\n";
- print("BR: " +out);
}
}
}
}
- print("CW: " +out);
-
//f.close();
/*
// remove the last ';' !!!
//f.close();
/*
// remove the last ';' !!!