projects
/
gnome.introspection-doc-generator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2c587be
)
JSDOC/TokenStream.js
author
Alan Knowles
<alan@akbkhome.com>
Thu, 15 Jul 2010 06:34:27 +0000
(14:34 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 15 Jul 2010 06:34:27 +0000
(14:34 +0800)
JSDOC/TokenStream.js
patch
|
blob
|
history
diff --git
a/JSDOC/TokenStream.js
b/JSDOC/TokenStream.js
index
55039a9
..
ac36596
100644
(file)
--- a/
JSDOC/TokenStream.js
+++ b/
JSDOC/TokenStream.js
@@
-113,14
+113,12
@@
TokenStream = XObject.define(
while (true) {
// print(i);
if (i < 0) {
while (true) {
// print(i);
if (i < 0) {
- if (n
< 0
) {
-
return new Token("", "VOID", "END_OF_STREAM")
;
+ if (n
> -1
) {
+
i = 0; continue
;
}
}
-
- }
- else if (i > this.tokens.length) {
- return new Token("", "VOID", "END_OF_STREAM");
+ return new Token("", "VOID", "END_OF_STREAM");
}
}
+ else if (i > this.tokens.length) return new Token("", "VOID", "END_OF_STREAM");
if (i != this.cursor && (this.tokens[i] === undefined || this.tokens[i].is("WHIT") || this.tokens[i].is("COMM"))) {
if (n < 0) i--; else i++;
if (i != this.cursor && (this.tokens[i] === undefined || this.tokens[i].is("WHIT") || this.tokens[i].is("COMM"))) {
if (n < 0) i--; else i++;