MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / capture_to_close

Function capture_to_close

lib/lua/src/lstrlib.c:395–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393
394
395static int capture_to_close (MatchState *ms) {
396 int level = ms->level;
397 for (level--; level>=0; level--)
398 if (ms->capture[level].len == CAP_UNFINISHED) return level;
399 return luaL_error(ms->L, "invalid pattern capture");
400}
401
402
403static 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