more backtracking

This commit is contained in:
Folkert 2021-02-02 18:47:58 +01:00
parent d284d3bb72
commit e643d1ea3c
7 changed files with 101 additions and 72 deletions

View file

@ -3396,9 +3396,7 @@ fn parse<'a>(arena: &'a Bump, header: ModuleHeader<'a>) -> Result<Msg<'a>, Loadi
),
_ => panic!(
"Parser Error\nmodule: {:?}\nattempting: {:?}\n(line, col): {:?}\n",
header.module_id,
fail.attempting,
(state.line, state.column)
header.module_id, fail.attempting, &state
),
}
}