Fixing silly mistake with the comments.

This commit is contained in:
Tim Jones
2010-04-26 16:00:12 +12:00
parent 8950c3c4c8
commit 95367a4a63
4 changed files with 36 additions and 90 deletions

View File

@@ -542,7 +542,7 @@ exports.ObjectNode: class ObjectNode extends BaseNode
join: "\n" if (prop is last_noncom) or (prop instanceof CommentNode)
join: '' if i is @properties.length - 1
indent: if prop instanceof CommentNode then '' else @idt 1
prop: new AssignNode prop, prop, 'object' unless prop instanceof AssignNode
prop: new AssignNode prop, prop, 'object' unless prop instanceof AssignNode or prop instanceof CommentNode
indent + prop.compile(o) + join
props: props.join('')
inner: if props then '\n' + props + '\n' + @idt() else ''