| 235 | |
| 236 | |
| 237 | static int check_capture (MatchState *ms, int l) { |
| 238 | l -= '1'; |
| 239 | if (l < 0 || l >= ms->level || ms->capture[l].len == CAP_UNFINISHED) |
| 240 | return luaL_error(ms->L, "invalid capture index %%%d", l + 1); |
| 241 | return l; |
| 242 | } |
| 243 | |
| 244 | |
| 245 | static int capture_to_close (MatchState *ms) { |
no test coverage detected