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:
35ddfbd
)
JSDOC/CompressWhite.vala
author
Alan Knowles
<alan@roojs.com>
Thu, 3 Dec 2015 07:24:55 +0000
(15:24 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 3 Dec 2015 07:24:55 +0000
(15:24 +0800)
JSDOC/CompressWhite.vala
patch
|
blob
|
history
diff --git
a/JSDOC/CompressWhite.vala
b/JSDOC/CompressWhite.vala
index
0b18399
..
ca8aa78
100644
(file)
--- a/
JSDOC/CompressWhite.vala
+++ b/
JSDOC/CompressWhite.vala
@@
-71,15
+71,19
@@
namespace JSDOC
ts.cursor = cu;
continue;
}
ts.cursor = cu;
continue;
}
- // a = function() { ...
+ // a = function() { ...
-- add a semi colon a tthe end if not one there..
if (ts.lookTok(1).data == "=" && ts.lookTok(2).name == "FUNCTION") {
// freeze time..
//println("got = function() ");
if (ts.lookTok(1).data == "=" && ts.lookTok(2).name == "FUNCTION") {
// freeze time..
//println("got = function() ");
+ tok = ts.next();
+ tok = ts.next();
+ tok = ts.next();
+
var cu = ts.cursor;
ts.cursor+=2; // move two along, and balance...
var cu = ts.cursor;
ts.cursor+=2; // move two along, and balance...
- if (ts.balance("(").size < 1 ){
+ if (t
ok.data != "(" || t
s.balance("(").size < 1 ){
print("balance ( issue on line %d\n", ts.toArray().get(cu).line);
ts.dump(cu-40, cu+2);
print("balance ( issue on line %d\n", ts.toArray().get(cu).line);
ts.dump(cu-40, cu+2);