mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
fixes #2037: line terminators are incorrectly added after herecomments
thanks @geraldalewis for finding the relevant line and making this fix way too easy for me
This commit is contained in:
@@ -171,7 +171,6 @@
|
||||
herecomment: true,
|
||||
indent: Array(this.indent + 1).join(' ')
|
||||
}));
|
||||
this.token('TERMINATOR', '\n');
|
||||
}
|
||||
this.line += count(comment, '\n');
|
||||
return comment.length;
|
||||
|
||||
@@ -654,7 +654,7 @@
|
||||
|
||||
Comment.prototype.compileNode = function(o, level) {
|
||||
var code;
|
||||
code = '/*' + multident(this.comment, this.tab) + ("\n" + this.tab + "*/");
|
||||
code = '/*' + multident(this.comment, this.tab) + ("\n" + this.tab + "*/\n");
|
||||
if ((level || o.level) === LEVEL_TOP) code = o.indent + code;
|
||||
return code;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user