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

@ -34,7 +34,7 @@ static PARSER_STEP_LIMIT: Limit = Limit::new(15_000_000);
impl<'t> Parser<'t> {
pub(super) fn new(inp: &'t Input, edition: Edition) -> Parser<'t> {
Parser { inp, pos: 0, events: Vec::new(), steps: Cell::new(0), edition: edition }
Parser { inp, pos: 0, events: Vec::new(), steps: Cell::new(0), edition }
}
pub(crate) fn finish(self) -> Vec<Event> {