mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
type variable errors
This commit is contained in:
parent
16a2dfd058
commit
b349ae7ab5
4 changed files with 15 additions and 52 deletions
|
@ -63,7 +63,7 @@ pub fn lowercase_ident<'a>() -> impl Parser<'a, &'a str, ()> {
|
|||
Err(progress) => Err((progress, (), state)),
|
||||
Ok(ident) => {
|
||||
if crate::keyword::KEYWORDS.iter().any(|kw| &ident == kw) {
|
||||
Err((MadeProgress, (), state))
|
||||
Err((NoProgress, (), state))
|
||||
} else {
|
||||
let width = ident.len();
|
||||
match state.advance_without_indenting_ee(width, |_, _| ()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue