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