File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
test_data/parser/inline/ok Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -323,8 +323,8 @@ fn name_ref_or_index(p: &mut Parser) {
323323 p. at( IDENT ) || p. at( INT_NUMBER ) || p. at( FLOAT_NUMBER_PART ) || p. at_ts( FLOAT_LITERAL_FIRST )
324324 ) ;
325325 let m = p. start ( ) ;
326- if p. at_ts ( FLOAT_LITERAL_FIRST ) {
327- p. bump_remap ( FLOAT_NUMBER_PART ) ;
326+ if p. at ( FLOAT_NUMBER_PART ) || p . at_ts ( FLOAT_LITERAL_FIRST ) {
327+ p. bump_remap ( INT_NUMBER ) ;
328328 } else {
329329 p. bump_any ( ) ;
330330 }
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ SOURCE_FILE
5050 IDENT "x"
5151 DOT "."
5252 NAME_REF
53- FLOAT_NUMBER_PART "0"
53+ INT_NUMBER "0"
5454 DOT "."
5555 WHITESPACE " "
5656 NAME_REF
@@ -67,10 +67,10 @@ SOURCE_FILE
6767 IDENT "x"
6868 DOT "."
6969 NAME_REF
70- FLOAT_NUMBER_PART "0"
70+ INT_NUMBER "0"
7171 DOT "."
7272 NAME_REF
73- FLOAT_NUMBER_PART "1"
73+ INT_NUMBER "1"
7474 SEMICOLON ";"
7575 WHITESPACE "\n "
7676 EXPR_STMT
You can’t perform that action at this time.
0 commit comments