Issue #572. Flexible JavaScript block comments, compatible with JSDoc, YUI-compressor, and Google Closure compiler preservation syntax.

This commit is contained in:
Jeremy Ashkenas
2010-08-23 20:27:34 -04:00
parent 9fd92bf884
commit f90fac0e55
4 changed files with 10 additions and 15 deletions

View File

@@ -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