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:
28cab37
)
JSDOC/CompressWhite.js
author
alan
<alan@alanfast.akbkhome.com>
Mon, 19 Apr 2010 05:16:52 +0000
(13:16 +0800)
committer
alan
<alan@alanfast.akbkhome.com>
Mon, 19 Apr 2010 05:16:52 +0000
(13:16 +0800)
JSDOC/CompressWhite.js
patch
|
blob
|
history
diff --git
a/JSDOC/CompressWhite.js
b/JSDOC/CompressWhite.js
index
e8331bb
..
8dc67a2
100644
(file)
--- a/
JSDOC/CompressWhite.js
+++ b/
JSDOC/CompressWhite.js
@@
-210,24
+210,21
@@
CompressWhite = function (ts, packer)
out.length = ts.slen; // prealloc.
out = '';
while (true) {
out.length = ts.slen; // prealloc.
out = '';
while (true) {
- var tok = ts.next();
+ var tok = ts.next
Tok
();
if (!tok) {
break;
}
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);
//f.write(tok.identifier.mungedValue);
- out +=tok.identifier.mungedValue;
+ out +=
tok.identifier.mungedValue;
continue;
}
// at this point we can apply a text translation kit...
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;
if (packer.stringHandler) {
out += packer.stringHandler(tok);
continue;