sync
[gnome.introspection-doc-generator] / JSDOC / Collapse.js
index 9730949..71a89fd 100644 (file)
@@ -194,6 +194,12 @@ Collapse = XObject.define(
                     g.push(ar[i]);
                     continue;
                 }
+                // var a=..., b =...
+                if ((ar[i].data != ';') && g.length && (g[0].name == "VAR")) {;
+                    g.push(ar[i]);
+                    continue;
+                }
+                
                 g.push(ar[i]);
                 ret.push(g);
                 g = [];
@@ -240,6 +246,7 @@ Collapse = XObject.define(
                 }
             }
              // last.. - if g.val.length is 0 then it's a trailing ','...
+             // we should really throw a syntax error in that case..
             if (k.length && g.val.length) {
                 ret[k] = g;
             }