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