| 386 | |
| 387 | |
| 388 | static const char *end_capture (MatchState *ms, const char *s, |
| 389 | const char *p) { |
| 390 | int l = capture_to_close(ms); |
| 391 | const char *res; |
| 392 | ms->capture[l].len = s - ms->capture[l].init; /* close capture */ |
| 393 | if ((res = match(ms, s, p)) == NULL) /* match failed? */ |
| 394 | ms->capture[l].len = CAP_UNFINISHED; /* undo capture */ |
| 395 | return res; |
| 396 | } |
| 397 | |
| 398 | |
| 399 | static const char *match_capture (MatchState *ms, const char *s, int l) { |
no test coverage detected