Fixed EOI check in parse macros.
The EOI skip was not updated to the new naming scheme.
@@ -228,11 +228,11 @@ macro_rules! parses_to {
&$crate::Token::End { rule: ref second_rule, .. }
) => {
assert!(
- format!("{:?}", first_rule) == "eoi",
+ format!("{:?}", first_rule) == "EOI",
format!("expected end of input, but found {:?}", rest)
);
assert!(
- format!("{:?}", second_rule) == "eoi",
+ format!("{:?}", second_rule) == "EOI",
format!("expected end of input, but found {:?}", rest)
);
}
