| 248 | |
| 249 | |
| 250 | static int capture_to_close (MatchState *ms) { |
| 251 | int level = ms->level; |
| 252 | for (level--; level>=0; level--) |
| 253 | if (ms->capture[level].len == CAP_UNFINISHED) return level; |
| 254 | return luaL_error(ms->L, "invalid pattern capture"); |
| 255 | } |
| 256 | |
| 257 | |
| 258 | static const char *classend (MatchState *ms, const char *p) { |
no test coverage detected