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

Function lexerror

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

Source from the content-addressed store, hash-verified

99
100
101static l_noret lexerror (LexState *ls, const char *msg, int token) {
102 char buff[LUA_IDSIZE];
103 luaO_chunkid(buff, getstr(ls->source), LUA_IDSIZE);
104 msg = luaO_pushfstring(ls->L, "%s:%d: %s", buff, ls->linenumber, msg);
105 if (token)
106 luaO_pushfstring(ls->L, "%s near %s", msg, txtToken(ls, token));
107 luaD_throw(ls->L, LUA_ERRSYNTAX);
108}
109
110
111l_noret luaX_syntaxerror (LexState *ls, const char *msg) {

Callers 8

saveFunction · 0.85
luaX_syntaxerrorFunction · 0.85
inclinenumberFunction · 0.85
trydecpointFunction · 0.85
read_long_stringFunction · 0.85
escerrorFunction · 0.85
read_stringFunction · 0.85
llexFunction · 0.85

Calls 4

luaO_chunkidFunction · 0.70
luaO_pushfstringFunction · 0.70
txtTokenFunction · 0.70
luaD_throwFunction · 0.70

Tested by

no test coverage detected