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

index 738078a..cf732c7 100644 (file)
@@ -204,7 +204,7 @@ TokenReader = XObject.define(
                 || 
                 (stream.look() == "<" && stream.look(1) == "!" && stream.look(2) == "-" && stream.look(3) == "-" && (found=stream.next(4)))
             ) {
-                
+                var line = this.line;
                 while (!stream.look().eof && !Lang.isNewline(stream.look())) {
                     found += stream.next();
                 }
@@ -212,7 +212,7 @@ TokenReader = XObject.define(
                     found += stream.next();
                 }
                 if (this.keepComments) {
-                    tokens.push(new Token(found, "COMM", "SINGLE_LINE_COMM", this.line));
+                    tokens.push(new Token(found, "COMM", "SINGLE_LINE_COMM", line));
                 }
                 this.line++;
                 return true;