config1.builder
[gnome.introspection-doc-generator] / JSDOC / Collapse.vala
index ba21cf0..30cefb3 100644 (file)
@@ -136,7 +136,7 @@ namespace JSDOC {
                                 
                                 if (tok.data != "{") {
                                     // paramters or array elements..
-                                    tok.items = this.toItems(toks, [',']);
+                                    tok.items = this.toItems(toks, ","]);
                                 } else {
                                     // check for types.. it could be a list of statements.. or object
                                     // format "{" "xXXX" ":" << looks for the ':'.. seems to work.. not sure if it's foolproof...
@@ -144,10 +144,11 @@ namespace JSDOC {
                                     var ost = new  TokenStream(toks);
                                     //console.dump(ost.look(2,true) );
                                     if (ost.look(2,true) && ost.look(2,true).data == ":") {
+                                               // object properties...
                                         tok.props = this.toProps(toks);
                                     } else {
                                         // list of statemetns..
-                                        tok.items = this.toItems(toks,[ ';', '{'] );;
+                                        tok.items = this.toItems(toks, ";{");;
                                     }