Skip to content

Commit 78b008a

Browse files
committed
gh-153568: Clear memo filters before the parser error pass
1 parent ae1f4ed commit 78b008a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Parser/pegen.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,7 @@ reset_parser_state_for_error_pass(Parser *p)
937937
p->last_stmt_location.end_col_offset = 0;
938938
for (int i = 0; i < p->fill; i++) {
939939
p->tokens[i]->memo = NULL;
940+
p->tokens[i]->memo_mask = 0;
940941
}
941942
p->mark = 0;
942943
p->call_invalid_rules = 1;

0 commit comments

Comments
 (0)