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