mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
debugging inline comment bug
This commit is contained in:
parent
30c1d218a7
commit
5bd776f972
17 changed files with 206 additions and 30 deletions
|
@ -321,6 +321,15 @@ impl<'a> CommentOrNewline<'a> {
|
|||
DocComment(_) => false,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn to_string(&self) -> std::string::String {
|
||||
use CommentOrNewline::*;
|
||||
match self {
|
||||
Newline => "\n".to_owned(),
|
||||
LineComment(comment_str) => format!("#{}",comment_str),
|
||||
DocComment(comment_str) => format!("##{}",comment_str),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue