mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
working parser error
This commit is contained in:
parent
719ef5b70e
commit
aea48f703a
5 changed files with 16 additions and 12 deletions
|
@ -1244,12 +1244,12 @@ pub fn ident_etc<'a>(min_indent: u16) -> impl Parser<'a, Expr<'a>> {
|
|||
move |arena, state, (loc_ident, opt_extras)| {
|
||||
// This appears to be a var, keyword, or function application.
|
||||
match opt_extras {
|
||||
(Some(_loc_args), Some((_spaces_before_equals, Either::First(_equals_indent)))) => {
|
||||
// We got args with an '=' after them, e.g. `foo a b = ...`
|
||||
// This is a syntax error!
|
||||
(Some(loc_args), Some((_spaces_before_equals, Either::First(_equals_indent)))) => {
|
||||
// We got args with an '=' after them, e.g. `foo a b = ...` This is a syntax error!
|
||||
let region = Region::across_all(loc_args.iter().map(|v| &v.region));
|
||||
let fail = Fail {
|
||||
attempting: state.attempting,
|
||||
reason: FailReason::ArgumentsBeforeEquals,
|
||||
reason: FailReason::ArgumentsBeforeEquals(region),
|
||||
};
|
||||
Err((fail, state))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue