MCPcopy Create free account
hub / github.com/F-Stack/f-stack / capture_to_close

Function capture_to_close

app/redis-6.2.6/deps/lua/src/lstrlib.c:194–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192
193
194static int capture_to_close (MatchState *ms) {
195 int level = ms->level;
196 for (level--; level>=0; level--)
197 if (ms->capture[level].len == CAP_UNFINISHED) return level;
198 return luaL_error(ms->L, "invalid pattern capture");
199}
200
201
202static 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