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