| 395 | |
| 396 | |
| 397 | static int capture_to_close (MatchState *ms) { |
| 398 | int level = ms->level; |
| 399 | for (level--; level>=0; level--) |
| 400 | if (ms->capture[level].len == CAP_UNFINISHED) return level; |
| 401 | return luaL_error(ms->L, "invalid pattern capture"); |
| 402 | } |
| 403 | |
| 404 | |
| 405 | static const char *classend (MatchState *ms, const char *p) { |
no test coverage detected