JSDOC/Collapse.vala
[gnome.introspection-doc-generator] / JSDOC / Collapse.vala
index 035e8c3..021af5e 100644 (file)
@@ -132,12 +132,11 @@ namespace JSDOC {
                                 
                                 tok.items = new Gee.ArrayList<Token>(); //?? needed?
                                 tok.props = new Gee.HashMap<string,Gee.ArrayList<Token>>();
-                                
-                                
+                                 
                                 
                                 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...
@@ -148,7 +147,7 @@ namespace JSDOC {
                                         tok.props = this.toProps(toks);
                                     } else {
                                         // list of statemetns..
-                                        tok.items = this.toItems(toks,[ ';', '{'] );;
+                                        tok.items = this.toItems(toks, ";{");;
                                     }