working parser error

This commit is contained in:
Folkert 2020-04-16 01:30:28 +02:00
parent 719ef5b70e
commit aea48f703a
5 changed files with 16 additions and 12 deletions

View file

@ -12,8 +12,11 @@ pub fn parse_problem<'b>(
use FailReason::*;
match problem.reason {
ArgumentsBeforeEquals => {
let doc = alloc.text("Unexpected tokens in front of the `=` symbol:");
ArgumentsBeforeEquals(region) => {
let doc = alloc.stack(vec![
alloc.reflow("Unexpected tokens in front of the `=` symbol:"),
alloc.region(region),
]);
Report {
filename,