From: Alan Knowles Date: Thu, 15 Jul 2010 07:19:56 +0000 (+0800) Subject: JSDOC/TokenReader.js X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=c0e48a4b3fb7a07400e261ff3ab7f53e2703a05c JSDOC/TokenReader.js --- diff --git a/JSDOC/TokenReader.js b/JSDOC/TokenReader.js index 2657ccd..738078a 100644 --- a/JSDOC/TokenReader.js +++ b/JSDOC/TokenReader.js @@ -208,7 +208,9 @@ TokenReader = XObject.define( while (!stream.look().eof && !Lang.isNewline(stream.look())) { found += stream.next(); } - + if (!stream.look().eof) { + found += stream.next(); + } if (this.keepComments) { tokens.push(new Token(found, "COMM", "SINGLE_LINE_COMM", this.line)); }