mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 11:31:20 -05:00
Issue #572. Flexible JavaScript block comments, compatible with JSDoc, YUI-compressor, and Google Closure compiler preservation syntax.
This commit is contained in:
@@ -392,15 +392,14 @@ exports.CommentNode = class CommentNode extends BaseNode
|
||||
class: 'CommentNode'
|
||||
isStatement: -> yes
|
||||
|
||||
constructor: (@lines) ->
|
||||
constructor: (@comment) ->
|
||||
super()
|
||||
|
||||
makeReturn: ->
|
||||
this
|
||||
|
||||
compileNode: (o) ->
|
||||
sep = @tab + '// '
|
||||
sep + @lines.join '\n' + sep
|
||||
@tab + '/*' + @comment.replace(/\r?\n/g, '\n' + @tab) + '*/'
|
||||
|
||||
#### CallNode
|
||||
|
||||
|
||||
Reference in New Issue
Block a user