mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
Revert "Don't remap float tokens to INT_NUMBER
"
This reverts commit cb5e8da88a
.
This commit is contained in:
parent
da969635a4
commit
73e0e17b52
4 changed files with 4 additions and 10 deletions
|
@ -324,9 +324,7 @@ fn name_ref_or_index(p: &mut Parser) {
|
|||
);
|
||||
let m = p.start();
|
||||
if p.at(FLOAT_NUMBER_PART) || p.at_ts(FLOAT_LITERAL_FIRST) {
|
||||
// Ideally we'd remap this to `INT_NUMBER` instead, but that causes the MBE conversion to
|
||||
// lose track of what's a float and what isn't, causing panics.
|
||||
p.bump_remap(FLOAT_NUMBER_PART);
|
||||
p.bump_remap(INT_NUMBER);
|
||||
} else {
|
||||
p.bump_any();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue