fix TODO comments
This commit is contained in:
parent
76d1f93896
commit
a49570fd20
8 changed files with 82 additions and 67 deletions
|
@ -210,8 +210,10 @@ pub fn literal_to_string(lit: token::Lit) -> String {
|
|||
token::ByteStrRaw(n) => {
|
||||
format!("br{delim}\"{string}\"{delim}", delim = "#".repeat(n as usize), string = symbol)
|
||||
}
|
||||
// TODO
|
||||
token::CStr | token::CStrRaw(_) => todo!(),
|
||||
token::CStr => format!("c\"{symbol}\""),
|
||||
token::CStrRaw(n) => {
|
||||
format!("cr{delim}\"{symbol}\"{delim}", delim = "#".repeat(n as usize))
|
||||
}
|
||||
token::Integer | token::Float | token::Bool | token::Err => symbol.to_string(),
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue