Fix missing last token in mbe $repeat parsing

This commit is contained in:
Edwin Cheng 2019-04-18 23:33:54 +08:00
parent 403cd78bae
commit e8ddeb869d
2 changed files with 24 additions and 1 deletions

View file

@ -91,7 +91,6 @@ fn parse_repeat(p: &mut TtCursor) -> Result<crate::Repeat, ParseError> {
'?' => crate::RepeatKind::ZeroOrOne,
_ => return Err(ParseError::Expected(String::from("repeat"))),
};
p.bump();
Ok(crate::Repeat { subtree, kind, separator })
}