MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / lexerror

Function lexerror

third-party/lua-5.5.0/src/llex.c:116–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114
115
116static l_noret lexerror (LexState *ls, const char *msg, int token) {
117 msg = luaG_addinfo(ls->L, msg, ls->source, ls->linenumber);
118 if (token)
119 luaO_pushfstring(ls->L, "%s near %s", msg, txtToken(ls, token));
120 luaD_throw(ls->L, LUA_ERRSYNTAX);
121}
122
123
124l_noret luaX_syntaxerror (LexState *ls, const char *msg) {

Callers 8

saveFunction · 0.70
luaX_syntaxerrorFunction · 0.70
inclinenumberFunction · 0.70
read_numeralFunction · 0.70
read_long_stringFunction · 0.70
esccheckFunction · 0.70
read_stringFunction · 0.70
llexFunction · 0.70

Calls 4

luaG_addinfoFunction · 0.70
luaO_pushfstringFunction · 0.70
txtTokenFunction · 0.70
luaD_throwFunction · 0.70

Tested by

no test coverage detected