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

Function capture_to_close

freebsd/contrib/openzfs/module/lua/lstrlib.c:245–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243
244
245static 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
253static 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