Rollup merge of #107467 - WaffleLapkin:uneq, r=oli-obk
Improve enum checks Some light refactoring.
This commit is contained in:
commit
53bb6322db
33 changed files with 278 additions and 260 deletions
|
@ -503,7 +503,7 @@ impl TtParser {
|
|||
mp.push_match(metavar_idx, seq_depth, MatchedSeq(vec![]));
|
||||
}
|
||||
|
||||
if op == KleeneOp::ZeroOrMore || op == KleeneOp::ZeroOrOne {
|
||||
if matches!(op, KleeneOp::ZeroOrMore | KleeneOp::ZeroOrOne) {
|
||||
// Try zero matches of this sequence, by skipping over it.
|
||||
self.cur_mps.push(MatcherPos {
|
||||
idx: idx_first_after,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue