File tree 1 file changed +1
-11
lines changed
1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -434,16 +434,6 @@ impl<'a> Parser<'a> {
434
434
let statement = self . parse_statement ( ) ?;
435
435
stmts. push ( statement) ;
436
436
expecting_statement_delimiter = true ;
437
- if self . peek_token ( ) . token != Token :: SemiColon {
438
- // If the next valid character is not a semicolon,
439
- // check whether the previous valid character is a semicolon.
440
- // If it is, revert to the previous valid character (i.e., the semicolon);
441
- // otherwise, do nothing.
442
- self . prev_token ( ) ;
443
- if self . peek_token ( ) . token != Token :: SemiColon {
444
- self . next_token ( ) ;
445
- }
446
- } ;
447
437
}
448
438
Ok ( stmts)
449
439
}
@@ -5364,7 +5354,7 @@ impl<'a> Parser<'a> {
5364
5354
for_query : None ,
5365
5355
} ) ;
5366
5356
5367
- if self . next_token ( ) != Token :: Comma {
5357
+ if self . peek_token ( ) . token == Token :: SemiColon || self . next_token ( ) != Token :: Comma {
5368
5358
break ;
5369
5359
}
5370
5360
}
You can’t perform that action at this time.
0 commit comments