MCPcopy Create free account
hub / github.com/DFHack/dfhack / capture_to_close

Function capture_to_close

depends/lua/src/lstrlib.c:250–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248
249
250static int capture_to_close (MatchState *ms) {
251 int level = ms->level;
252 for (level--; level>=0; level--)
253 if (ms->capture[level].len == CAP_UNFINISHED) return level;
254 return luaL_error(ms->L, "invalid pattern capture");
255}
256
257
258static 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