JSDOC/TokenStream.vala
authorAlan Knowles <alan@roojs.com>
Wed, 30 Sep 2015 10:08:50 +0000 (18:08 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 30 Sep 2015 10:08:50 +0000 (18:08 +0800)
JSDOC/TokenStream.vala

index edfc621..59db3a6 100644 (file)
@@ -224,6 +224,7 @@ namespace JSDOC {
                    var started = false;
                    //Seed.print("START:" + start);
                    //Seed.print("STOP:" + stop);
+                   
                    while ((token = this.look())) {
                        if (token.is(start)) {
                      //      Seed.print("balance: START : " + depth + " " + token.data);
@@ -238,7 +239,9 @@ namespace JSDOC {
                        if (token.is(stop)) {
                            depth--;
                        //    Seed.print("balance: STOP: "  + depth + " " + token.data);
-                           if (depth < 1) return got;
+                           if (depth < 1) {
+                                       return got;
+                               }
                        }
                        if (!this.next()) break;
                    }