mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Fix missing last token in mbe $repeat parsing
This commit is contained in:
parent
403cd78bae
commit
e8ddeb869d
2 changed files with 24 additions and 1 deletions
|
@ -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 })
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue