From 143c4d5efcab338b7bfcea127b4acc08de5dfb32 Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Sat, 21 Aug 2010 09:30:25 -0400 Subject: [PATCH] Issue #572. Block comments now compile to // for aesthetic reasons. --- lib/nodes.js | 4 ++-- src/nodes.coffee | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/nodes.js b/lib/nodes.js index 020d788a..793118b5 100644 --- a/lib/nodes.js +++ b/lib/nodes.js @@ -439,8 +439,8 @@ }; CommentNode.prototype.compileNode = function(o) { var sep; - sep = '\n' + this.tab; - return "" + (this.tab) + "/*" + (sep + this.lines.join(sep)) + "\n" + (this.tab) + "*/"; + sep = this.tab + '// '; + return sep + this.lines.join('\n' + sep); }; return CommentNode; })(); diff --git a/src/nodes.coffee b/src/nodes.coffee index c56c3354..00f3fb70 100644 --- a/src/nodes.coffee +++ b/src/nodes.coffee @@ -399,8 +399,8 @@ exports.CommentNode = class CommentNode extends BaseNode this compileNode: (o) -> - sep = '\n' + @tab - "#{@tab}/*#{sep + @lines.join(sep) }\n#{@tab}*/" + sep = @tab + '// ' + sep + @lines.join '\n' + sep #### CallNode