MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / capture_to_close

Function capture_to_close

extlibs/lua/src/lstrlib.c:392–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390
391
392static 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
400static const char *classend (MatchState *ms, const char *p) {

Callers 1

end_captureFunction · 0.85

Calls 1

luaL_errorFunction · 0.85

Tested by

no test coverage detected