| 374 | |
| 375 | |
| 376 | static const char *min_expand (MatchState *ms, const char *s, |
| 377 | const char *p, const char *ep) { |
| 378 | for (;;) { |
| 379 | const char *res = match(ms, s, ep+1); |
| 380 | if (res != NULL) |
| 381 | return res; |
| 382 | else if (singlematch(ms, s, p, ep)) |
| 383 | s++; /* try with one more repetition */ |
| 384 | else return NULL; |
| 385 | } |
| 386 | } |
| 387 | |
| 388 | |
| 389 | static const char *start_capture (MatchState *ms, const char *s, |
no test coverage detected