From 59347388541388347e86de9718bd69994c113203 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 31 Jan 2019 17:16:02 +0300 Subject: first test sort-of passes --- crates/ra_macros/src/mbe_parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_macros/src/mbe_parser.rs') diff --git a/crates/ra_macros/src/mbe_parser.rs b/crates/ra_macros/src/mbe_parser.rs index 024d3a040..279ab2f25 100644 --- a/crates/ra_macros/src/mbe_parser.rs +++ b/crates/ra_macros/src/mbe_parser.rs @@ -84,7 +84,7 @@ fn parse_repeat(p: &mut TtCursor) -> Option { let kind = match rep { '*' => mbe::RepeatKind::ZeroOrMore, '+' => mbe::RepeatKind::OneOrMore, - '?' => mbe::RepeatKind::ZeroOrMore, + '?' => mbe::RepeatKind::ZeroOrOne, _ => return None, }; p.bump(); -- cgit v1.2.3