Fix #41 by adding a missing self.bump()

This commit is contained in:
Jonas Schievink 2015-12-09 00:45:42 +01:00
parent 474d2be12d
commit 90849fffcf

View File

@ -103,7 +103,7 @@ impl<'str> RegexParser<'str> {
alternatives.push(try!(self.alternative()));
match self.lookahead {
Some((_, '|')) => { continue; }
Some((_, '|')) => { self.bump(); continue; }
_ => { break; }
}
}