mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 11:31:20 -05:00
Issue #572. Block comments now compile to // for aesthetic reasons.
This commit is contained in:
@@ -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;
|
||||||
})();
|
})();
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user