| 341 | |
| 342 | |
| 343 | static const char *end_capture (MatchState *ms, const char *s, |
| 344 | const char *p) { |
| 345 | int l = capture_to_close(ms); |
| 346 | const char *res; |
| 347 | ms->capture[l].len = s - ms->capture[l].init; /* close capture */ |
| 348 | if ((res = match(ms, s, p)) == NULL) /* match failed? */ |
| 349 | ms->capture[l].len = CAP_UNFINISHED; /* undo capture */ |
| 350 | return res; |
| 351 | } |
| 352 | |
| 353 | |
| 354 | static const char *match_capture (MatchState *ms, const char *s, int l) { |
no test coverage detected