mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Note FIXME
for suffixes
This commit is contained in:
parent
6cd458f3d0
commit
027f263ef5
2 changed files with 2 additions and 0 deletions
|
@ -76,6 +76,7 @@ impl server::FreeFunctions for RaSpanServer {
|
|||
|
||||
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…
Add table
Add a link
Reference in a new issue