Skip to content

Commit 206ef80

Browse files
committed
RepeatPlus, do 0 times to test failure
1 parent 3e5e2d2 commit 206ef80

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

tools/grammar-check/src/permute2.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -173,20 +173,12 @@ impl<'g> PermutationIterator<'g> {
173173
emitted_empty: false,
174174
}
175175
}
176-
ExpressionKind::Repeat(expr) => IteratorState::Repeat {
176+
ExpressionKind::Repeat(expr) | ExpressionKind::RepeatPlus(expr) => IteratorState::Repeat {
177177
expr,
178178
include_empty: true,
179179
current_stage: 0,
180180
iterator: None,
181181
},
182-
ExpressionKind::RepeatPlus(expr) => {
183-
IteratorState::Repeat {
184-
expr,
185-
include_empty: false,
186-
current_stage: 1, // Skip stage 0 (empty)
187-
iterator: None,
188-
}
189-
}
190182
ExpressionKind::RepeatRange {
191183
expr,
192184
name,

0 commit comments

Comments
 (0)