| 13869 | |
| 13870 | |
| 13871 | static int capture_to_close (MatchState *ms) { |
| 13872 | int level = ms->level; |
| 13873 | for (level--; level>=0; level--) |
| 13874 | if (ms->capture[level].len == CAP_UNFINISHED) return level; |
| 13875 | return luaL_error(ms->L, "invalid pattern capture"); |
| 13876 | } |
| 13877 | |
| 13878 | |
| 13879 | static const char *classend (MatchState *ms, const char *p) { |
no test coverage detected