| 384 | |
| 385 | |
| 386 | static int check_capture (MatchState *ms, int l) { |
| 387 | l -= '1'; |
| 388 | if (l_unlikely(l < 0 || l >= ms->level || |
| 389 | ms->capture[l].len == CAP_UNFINISHED)) |
| 390 | return luaL_error(ms->L, "invalid capture index %%%d", l + 1); |
| 391 | return l; |
| 392 | } |
| 393 | |
| 394 | |
| 395 | static int capture_to_close (MatchState *ms) { |
no test coverage detected