mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
working parser error
This commit is contained in:
parent
719ef5b70e
commit
aea48f703a
5 changed files with 16 additions and 12 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue