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

Function skip_sep

freebsd/contrib/openzfs/module/lua/llex.c:254–264  ·  view source on GitHub ↗

** skip a sequence '[=*[' or ']=*]' and return its number of '='s or ** -1 if sequence is malformed */

Source from the content-addressed store, hash-verified

252** -1 if sequence is malformed
253*/
254static int skip_sep (LexState *ls) {
255 int count = 0;
256 int s = ls->current;
257 lua_assert(s == '[' || s == ']');
258 save_and_next(ls);
259 while (ls->current == '=') {
260 save_and_next(ls);
261 count++;
262 }
263 return (ls->current == s) ? count : (-count) - 1;
264}
265
266
267static void read_long_string (LexState *ls, SemInfo *seminfo, int sep) {

Callers 2

read_long_stringFunction · 0.70
llexFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected