Note FIXME
for suffixes
This commit is contained in:
parent
6cd458f3d0
commit
027f263ef5
@ -76,6 +76,7 @@ fn literal_from_str(
|
||||
|
||||
let kind = literal_to_external(literal.kind()).ok_or(Err(()))?;
|
||||
|
||||
// FIXME: handle more than just int and float suffixes
|
||||
let suffix = match literal.kind() {
|
||||
ast::LiteralKind::FloatNumber(num) | ast::LiteralKind::IntNumber(num) => num.suffix(),
|
||||
_ => None,
|
||||
|
@ -67,6 +67,7 @@ fn literal_from_str(
|
||||
|
||||
let kind = literal_to_external(literal.kind()).ok_or(Err(()))?;
|
||||
|
||||
// FIXME: handle more than just int and float suffixes
|
||||
let suffix = match literal.kind() {
|
||||
ast::LiteralKind::FloatNumber(num) | ast::LiteralKind::IntNumber(num) => num.suffix(),
|
||||
_ => None,
|
||||
|
Loading…
Reference in New Issue
Block a user