MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / skip_sep

Function skip_sep

deps/lua/src/llex.c:210–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208
209
210static int skip_sep (LexState *ls) {
211 int count = 0;
212 int s = ls->current;
213 lua_assert(s == '[' || s == ']');
214 save_and_next(ls);
215 while (ls->current == '=') {
216 save_and_next(ls);
217 count++;
218 }
219 return (ls->current == s) ? count : (-count) - 1;
220}
221
222
223static void read_long_string (LexState *ls, SemInfo *seminfo, int sep) {

Callers 2

read_long_stringFunction · 0.85
llexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected