type variable errors

This commit is contained in:
Folkert 2021-03-12 03:18:31 +01:00
parent 16a2dfd058
commit b349ae7ab5
4 changed files with 15 additions and 52 deletions

View file

@ -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, |_, _| ()) {