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:
bb10390
)
JSDOC/TokenReader.vala
author
Alan Knowles
<alan@roojs.com>
Thu, 10 Sep 2015 10:23:04 +0000
(18:23 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 10 Sep 2015 10:23:04 +0000
(18:23 +0800)
JSDOC/TokenReader.vala
patch
|
blob
|
history
diff --git
a/JSDOC/TokenReader.vala
b/JSDOC/TokenReader.vala
index
b9fcbf7
..
ebc19b0
100644
(file)
--- a/
JSDOC/TokenReader.vala
+++ b/
JSDOC/TokenReader.vala
@@
-80,8
+80,13
@@
namespace JSDOC {
this.line =1;
var tokens = new TokenArray();
this.line =1;
var tokens = new TokenArray();
-
- while (!stream.look().eof) {
+ bool eof;
+ while (true) {
+
+ stream.look(0, out eof)
+ if (eof) {
+ break;
+ }
if (this.read_mlcomment(stream, tokens)) continue;
if (this.read_slcomment(stream, tokens)) continue;
if (this.read_dbquote(stream, tokens)) continue;
if (this.read_mlcomment(stream, tokens)) continue;
if (this.read_slcomment(stream, tokens)) continue;
if (this.read_dbquote(stream, tokens)) continue;