diff options
Diffstat (limited to '')
| -rw-r--r-- | lcode.c | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -45,6 +45,7 @@ l_noret luaK_semerror (LexState *ls, const char *fmt, ...) { | |||
| 45 | va_list argp; | 45 | va_list argp; |
| 46 | pushvfstring(ls->L, argp, fmt, msg); | 46 | pushvfstring(ls->L, argp, fmt, msg); |
| 47 | ls->t.token = 0; /* remove "near <token>" from final message */ | 47 | ls->t.token = 0; /* remove "near <token>" from final message */ |
| 48 | ls->linenumber = ls->lastline; /* back to line of last used token */ | ||
| 48 | luaX_syntaxerror(ls, msg); | 49 | luaX_syntaxerror(ls, msg); |
| 49 | } | 50 | } |
| 50 | 51 | ||
