feat: simple support for comments

This commit is contained in:
Jonathan Kelley committed 2022-06-28 15:01:51 -04:00
1 parent d70b436157
commit a825cdcf58
7 files changed
+218 -51

No files matched your search

+1 -2
View File
@@ -13,7 +13,6 @@ impl Buffer {
manual_props,
prop_gen_args,
}: &Component,
lines: &[&str],
) -> Result {
let mut name = name.to_token_stream().to_string();
name.retain(|c| !c.is_whitespace());
@@ -73,7 +72,7 @@ impl Buffer {
}
for child in children {
self.write_indented_ident(lines, child)?;
self.write_indented_ident(child)?;
}
if !body.is_empty() || !children.is_empty() {