| 543 | |
| 544 | |
| 545 | static const char *end_capture (MatchState *ms, const char *s, |
| 546 | const char *p) { |
| 547 | int l = capture_to_close(ms); |
| 548 | const char *res; |
| 549 | ms->capture[l].len = s - ms->capture[l].init; /* close capture */ |
| 550 | if ((res = match(ms, s, p)) == NULL) /* match failed? */ |
| 551 | ms->capture[l].len = CAP_UNFINISHED; /* undo capture */ |
| 552 | return res; |
| 553 | } |
| 554 | |
| 555 | |
| 556 | static const char *match_capture (MatchState *ms, const char *s, int l) { |
no test coverage detected