Revert "fix: Remap float parts as integers when parsed as indices"
This reverts commit dbb066b99e.
This commit is contained in:
@@ -323,8 +323,8 @@ fn name_ref_or_index(p: &mut Parser) {
|
||||
p.at(IDENT) || p.at(INT_NUMBER) || p.at(FLOAT_NUMBER_PART) || p.at_ts(FLOAT_LITERAL_FIRST)
|
||||
);
|
||||
let m = p.start();
|
||||
if p.at(FLOAT_NUMBER_PART) || p.at_ts(FLOAT_LITERAL_FIRST) {
|
||||
p.bump_remap(INT_NUMBER);
|
||||
if p.at_ts(FLOAT_LITERAL_FIRST) {
|
||||
p.bump_remap(FLOAT_NUMBER_PART);
|
||||
} else {
|
||||
p.bump_any();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user