Fix edition used for include macro parsing

This commit is contained in:
Lukas Wirth 2024-07-19 20:04:38 +02:00
parent f4199f786e
commit 92f5e806f1
6 changed files with 17 additions and 13 deletions

View file

@ -92,7 +92,7 @@ fn reparse_block(
let text = get_text_after_edit(node.clone().into(), edit);
let lexed = parser::LexedStr::new(edition, text.as_str());
let parser_input = lexed.to_input();
let parser_input = lexed.to_input(edition);
if !is_balanced(&lexed) {
return None;
}