| 397 | |
| 398 | |
| 399 | static const char *end_capture (MatchState *ms, const char *s, |
| 400 | const char *p) { |
| 401 | int l = capture_to_close(ms); |
| 402 | const char *res; |
| 403 | ms->capture[l].len = s - ms->capture[l].init; /* close capture */ |
| 404 | if ((res = match(ms, s, p)) == NULL) /* match failed? */ |
| 405 | ms->capture[l].len = CAP_UNFINISHED; /* undo capture */ |
| 406 | return res; |
| 407 | } |
| 408 | |
| 409 | |
| 410 | static const char *match_capture (MatchState *ms, const char *s, int l) { |
no test coverage detected