mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
add some tests.... and fix some bugs!
This commit is contained in:
parent
2000948765
commit
6be94c5f29
3 changed files with 40 additions and 17 deletions
|
@ -107,18 +107,14 @@ where
|
|||
match space {
|
||||
Newline => {}
|
||||
LineComment(comment) => {
|
||||
newline(buf, indent);
|
||||
buf.push('#');
|
||||
buf.push_str(comment);
|
||||
if let Some(true) = iter.peek().map(|s| s.is_comment()) {
|
||||
newline(buf, indent);
|
||||
}
|
||||
}
|
||||
DocComment(docs) => {
|
||||
newline(buf, indent);
|
||||
buf.push_str("##");
|
||||
buf.push_str(docs);
|
||||
if let Some(true) = iter.peek().map(|s| s.is_comment()) {
|
||||
newline(buf, indent);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue