mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
add handling for ListEnd errors
This commit is contained in:
parent
6fab6e20f5
commit
a384042c59
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue