add handling for ListEnd errors

This commit is contained in:
Joshua Warner 2021-11-14 13:25:17 -08:00
parent 6fab6e20f5
commit a384042c59

View file

@ -3093,6 +3093,7 @@ fn to_provides_report<'a>(
use roc_parse::parser::EProvides; use roc_parse::parser::EProvides;
match *parse_problem { match *parse_problem {
EProvides::ListEnd(row, col) | // TODO: give this its own error message
EProvides::Identifier(row, col) => { EProvides::Identifier(row, col) => {
let surroundings = Region::from_rows_cols(start_row, start_col, row, col); let surroundings = Region::from_rows_cols(start_row, start_col, row, col);
let region = Region::from_row_col(row, col); let region = Region::from_row_col(row, col);
@ -3158,6 +3159,7 @@ fn to_exposes_report<'a>(
use roc_parse::parser::EExposes; use roc_parse::parser::EExposes;
match *parse_problem { match *parse_problem {
EExposes::ListEnd(row, col) | // TODO: give this its own error message
EExposes::Identifier(row, col) => { EExposes::Identifier(row, col) => {
let surroundings = Region::from_rows_cols(start_row, start_col, row, col); let surroundings = Region::from_rows_cols(start_row, start_col, row, col);
let region = Region::from_row_col(row, col); let region = Region::from_row_col(row, col);