| 86 | |
| 87 | |
| 88 | static const char *txtToken (LexState *ls, int token) { |
| 89 | switch (token) { |
| 90 | case TK_NAME: |
| 91 | case TK_STRING: |
| 92 | case TK_NUMBER: |
| 93 | save(ls, '\0'); |
| 94 | return luaO_pushfstring(ls->L, LUA_QS, luaZ_buffer(ls->buff)); |
| 95 | default: |
| 96 | return luaX_token2str(ls, token); |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | |
| 101 | static l_noret lexerror (LexState *ls, const char *msg, int token) { |
no test coverage detected