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

Function txtToken

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

Source from the content-addressed store, hash-verified

102
103
104static const char *txtToken (LexState *ls, int token) {
105 switch (token) {
106 case TK_NAME: case TK_STRING:
107 case TK_FLT: case TK_INT:
108 save(ls, '\0');
109 return luaO_pushfstring(ls->L, "'%s'", luaZ_buffer(ls->buff));
110 default:
111 return luaX_token2str(ls, token);
112 }
113}
114
115
116static l_noret lexerror (LexState *ls, const char *msg, int token) {

Callers 1

lexerrorFunction · 0.70

Calls 3

saveFunction · 0.70
luaO_pushfstringFunction · 0.70
luaX_token2strFunction · 0.70

Tested by

no test coverage detected