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