mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-19 03:44:23 -05:00
better indentation handling for far-left heredocs and herecomments
This commit is contained in:
@@ -368,7 +368,7 @@ exports.CommentNode: class CommentNode extends BaseNode
|
||||
|
||||
compile_node: (o) ->
|
||||
if @type is 'herecomment'
|
||||
sep: '\n' + @idt(1)
|
||||
sep: '\n' + @tab
|
||||
"$@tab/*$sep${ @lines.join(sep) }\n$@tab*/"
|
||||
else
|
||||
"$@tab//" + @lines.join("\n$@tab//")
|
||||
|
||||
Reference in New Issue
Block a user