MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / capture_to_close

Function capture_to_close

Source/Misc/lua/src/lua.c:13871–13876  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13869
13870
13871static int capture_to_close (MatchState *ms) {
13872int level = ms->level;
13873for (level--; level>=0; level--)
13874if (ms->capture[level].len == CAP_UNFINISHED) return level;
13875return luaL_error(ms->L, "invalid pattern capture");
13876}
13877
13878
13879static 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