Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/parser/src/grammar.rs')
| -rw-r--r-- | crates/parser/src/grammar.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/parser/src/grammar.rs b/crates/parser/src/grammar.rs index 92f3302538..f68d7196c8 100644 --- a/crates/parser/src/grammar.rs +++ b/crates/parser/src/grammar.rs @@ -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_ts(FLOAT_LITERAL_FIRST) { - p.bump_remap(FLOAT_NUMBER_PART); + if p.at(FLOAT_NUMBER_PART) || p.at_ts(FLOAT_LITERAL_FIRST) { + p.bump_remap(INT_NUMBER); } else { p.bump_any(); } |