Skip to content

Commit 34173f2

Browse files
committed
gh-153568: Clear memo filters before the parser error pass
1 parent 038da18 commit 34173f2

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
@@ -931,6 +931,7 @@ reset_parser_state_for_error_pass(Parser *p)
931931
p->last_stmt_location.end_col_offset = 0;
932932
for (int i = 0; i < p->fill; i++) {
933933
p->tokens[i]->memo = NULL;
934+
p->tokens[i]->memo_mask = 0;
934935
}
935936
p->mark = 0;
936937
p->call_invalid_rules = 1;

0 commit comments

Comments
 (0)