From: Alan Knowles Date: Thu, 15 Jul 2010 07:20:32 +0000 (+0800) Subject: JSDOC/TokenReader.js X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=1b3376461a9346537b41d0dab8dee0aae22c33b1 JSDOC/TokenReader.js --- diff --git a/JSDOC/TokenReader.js b/JSDOC/TokenReader.js index 738078a..cf732c7 100644 --- a/JSDOC/TokenReader.js +++ b/JSDOC/TokenReader.js @@ -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;