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