| 521 | |
| 522 | |
| 523 | static const char *min_expand (MatchState *ms, const char *s, |
| 524 | const char *p, const char *ep) { |
| 525 | for (;;) { |
| 526 | const char *res = match(ms, s, ep+1); |
| 527 | if (res != NULL) |
| 528 | return res; |
| 529 | else if (singlematch(ms, s, p, ep)) |
| 530 | s++; /* try with one more repetition */ |
| 531 | else return NULL; |
| 532 | } |
| 533 | } |
| 534 | |
| 535 | |
| 536 | static const char *start_capture (MatchState *ms, const char *s, |
no test coverage detected