diff --git a/src/format.jule b/src/format.jule index 6388165..8c406ed 100644 --- a/src/format.jule +++ b/src/format.jule @@ -505,6 +505,8 @@ impl Formatter { fn struct_decl(&self, mut d: &ast::StructDecl) { if d.directives.len != 0 { self.directives(d.directives) + } else { + self.write_comments(d.token.row) } if d.public { self.write("pub ")