Reporting for abilities parsing

This commit is contained in:
ayazhafiz 2022-03-12 22:08:01 -06:00
parent d7abc3897b
commit d92a5b9424
4 changed files with 205 additions and 8 deletions

View file

@ -479,7 +479,6 @@ pub enum EAbility<'a> {
Space(BadInputError, Position),
Type(EType<'a>, Position),
IndentDemand(Position),
DemandAlignment(i32, Position),
DemandName(Position),
DemandColon(Position),
@ -1421,7 +1420,12 @@ where
}
}
pub fn word3<'a, ToError, E>(word_1: u8, word_2: u8, word_3: u8, to_error: ToError) -> impl Parser<'a, (), E>
pub fn word3<'a, ToError, E>(
word_1: u8,
word_2: u8,
word_3: u8,
to_error: ToError,
) -> impl Parser<'a, (), E>
where
ToError: Fn(Position) -> E,
E: 'a,