JSDOC/TokenStream.js
[gnome.introspection-doc-generator] / JSDOC / TokenStream.js
index 3a30964..1ffa2eb 100644 (file)
@@ -206,8 +206,8 @@ TokenStream = XObject.define(
                 
                 if (token.is(stop)) {
                     depth--;
-                    Seed.print("balance: STOP: " " + depth + " " + token.data);
-                    if (depth == 0) return got;
+                    Seed.print("balance: STOP: "  + depth + " " + token.data);
+                    if (depth < 0) return got;
                 }
                 if (!this.next()) break;
             }