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