projects
/
gnome.introspection-doc-generator
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JSDOC/Packer.vala
[gnome.introspection-doc-generator]
/
JSDOC
/
TokenStream.vala
diff --git
a/JSDOC/TokenStream.vala
b/JSDOC/TokenStream.vala
index
6c6f8ad
..
dff38f4
100644
(file)
--- a/
JSDOC/TokenStream.vala
+++ b/
JSDOC/TokenStream.vala
@@
-236,7
+236,7
@@
namespace JSDOC {
Token token;
while (null != (token = this.look(1,false))) {
Token token;
while (null != (token = this.look(1,false))) {
- debug("BALANCE:
" +
token.asString());
+ debug("BALANCE:
%d %s " , this.cursor,
token.asString());
if (token.is(start)) {
// Seed.print("balance: START : " + depth + " " + token.data);
depth++;
if (token.is(start)) {
// Seed.print("balance: START : " + depth + " " + token.data);
depth++;
@@
-249,10
+249,14
@@
namespace JSDOC {
if (token.is(stop)) {
depth--;
if (token.is(stop)) {
depth--;
- // Seed.print("balance: STOP: " + depth + " " + token.data);
+
+ print("balance (%d): STOP: %s\n" , depth , token.data);
if (depth < 1) {
if (depth < 1) {
+ this.next(); // shift cursor to eat closer...
+ print("returning got %d\n", got.size);
return got;
}
return got;
}
+
}
if (null == this.next()) {
break;
}
if (null == this.next()) {
break;