JSDOC/TokenReader.vala
authorAlan Knowles <alan@roojs.com>
Tue, 27 Oct 2015 09:20:32 +0000 (17:20 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 27 Oct 2015 09:20:32 +0000 (17:20 +0800)
JSDOC/Lang.vala.c
JSDOC/TextStream.vala.c
JSDOC/TokenReader.vala.c
JSDOC/TokenStream.vala.c
JSDOC/Token.vala.c

JSDOC/TokenReader.vala

index e58eed1..8add308 100644 (file)
@@ -417,14 +417,14 @@ namespace JSDOC {
                 var line = this.line;
                 while (!stream.lookEOF()) {
                                        print(stream.look().to_string());
-                       if ( !Lang.isNewline(stream.look().to_string())) {
+                       if ( Lang.isNewline(stream.look().to_string())) {
                                break;
                        }
                     found += stream.next();
                 }
-                //if (!stream.lookEOF()) { // what? << eat the EOL?
+                if (!stream.lookEOF()) { // lookinng for end  of line... if we got it, then do not eat the character..
                     found += stream.next();
-                //}
+                }
                 if (this.keepComments) {
                     tokens.push(new Token(found, "COMM", "SINGLE_LINE_COMM", line));
                 }