Function chumsky::recovery::skip_then_retry_until
source · pub fn skip_then_retry_until<I, const N: usize>(
until: [I; N]
) -> SkipThenRetryUntil<I, N>
Expand description
A recovery mode that simply skips to the next input on parser failure and tries again, until reaching one of several inputs.
Also see SkipThenRetryUntil::consume_end
.
This strategy is very ‘stupid’ and can result in very poor error generation in some languages. Place this strategy after others as a last resort, and be careful about over-using it.