From 47d710e1ad8352be849a59e4728f421627e568a6 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 3 Dec 2015 15:39:59 +0800 Subject: [PATCH] JSDOC/TokenStream.vala --- JSDOC/TokenStream.vala | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/JSDOC/TokenStream.vala b/JSDOC/TokenStream.vala index ad1baf2..83dd044 100644 --- a/JSDOC/TokenStream.vala +++ b/JSDOC/TokenStream.vala @@ -235,7 +235,7 @@ namespace JSDOC { //Seed.print("STOP:" + stop); Token token; - while (null != (token = this.lookTok(1))) { + while (null != (token = this.look(1,false))) { debug("BALANCE: " + token.asString()); if (token.is(start)) { // Seed.print("balance: START : " + depth + " " + token.data); @@ -249,12 +249,14 @@ namespace JSDOC { if (token.is(stop)) { depth--; - // Seed.print("balance: STOP: " + depth + " " + token.data); + + print("balance (%d): STOP: %s\n" depth , token.data); if (depth < 1) { return got; } + } - if (null == this.nextTok()) { + if (null == this.next()) { break; } } -- 2.39.2