Add edition to all parse functions of the parser crate

This commit is contained in:
Johann Hemmann 2024-01-30 16:45:10 +01:00 committed by Lukas Wirth
parent 392538c830
commit 454e481422
9 changed files with 16 additions and 20 deletions

View file

@ -94,7 +94,7 @@ fn reparse_block(
return None;
}
let tree_traversal = reparser.parse(&parser_input);
let tree_traversal = reparser.parse(&parser_input, parser::Edition::Edition2021);
let (green, new_parser_errors, _eof) = build_tree(lexed, tree_traversal);