JSDOC/TokenReader.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 15 Jul 2010 07:19:56 +0000 (15:19 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 15 Jul 2010 07:19:56 +0000 (15:19 +0800)
JSDOC/TokenReader.js

index 2657ccd..738078a 100644 (file)
@@ -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));
                 }