| 95 | |
| 96 | |
| 97 | static const char *txtToken (LexState *ls, int token) { |
| 98 | switch (token) { |
| 99 | case TK_NAME: case TK_STRING: |
| 100 | case TK_FLT: case TK_INT: |
| 101 | save(ls, '\0'); |
| 102 | return luaO_pushfstring(ls->L, "'%s'", luaZ_buffer(ls->buff)); |
| 103 | default: |
| 104 | return luaX_token2str(ls, token); |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | |
| 109 | static l_noret lexerror (LexState *ls, const char *msg, int token) { |
no test coverage detected