Issue #572. Block comments now compile to // for aesthetic reasons.

This commit is contained in:
Jeremy Ashkenas
2010-08-21 09:30:25 -04:00
parent 13adc44867
commit 143c4d5efc
2 changed files with 4 additions and 4 deletions

View File

@@ -439,8 +439,8 @@
}; };
CommentNode.prototype.compileNode = function(o) { CommentNode.prototype.compileNode = function(o) {
var sep; var sep;
sep = '\n' + this.tab; sep = this.tab + '// ';
return "" + (this.tab) + "/*" + (sep + this.lines.join(sep)) + "\n" + (this.tab) + "*/"; return sep + this.lines.join('\n' + sep);
}; };
return CommentNode; return CommentNode;
})(); })();

View File

@@ -399,8 +399,8 @@ exports.CommentNode = class CommentNode extends BaseNode
this this
compileNode: (o) -> compileNode: (o) ->
sep = '\n' + @tab sep = @tab + '// '
"#{@tab}/*#{sep + @lines.join(sep) }\n#{@tab}*/" sep + @lines.join '\n' + sep
#### CallNode #### CallNode