MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / capture_to_close

Function capture_to_close

third-party/lua-5.5.0/src/lstrlib.c:397–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395
396
397static int capture_to_close (MatchState *ms) {
398 int level = ms->level;
399 for (level--; level>=0; level--)
400 if (ms->capture[level].len == CAP_UNFINISHED) return level;
401 return luaL_error(ms->L, "invalid pattern capture");
402}
403
404
405static const char *classend (MatchState *ms, const char *p) {

Callers 1

end_captureFunction · 0.70

Calls 1

luaL_errorFunction · 0.70

Tested by

no test coverage detected