diff options
Diffstat (limited to 'llex.c')
-rw-r--r-- | llex.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -228,6 +228,8 @@ static int read_numeral (LexState *ls, SemInfo *seminfo) { | |||
228 | save_and_next(ls); | 228 | save_and_next(ls); |
229 | else break; | 229 | else break; |
230 | } | 230 | } |
231 | if (lislalnum(ls->current)) /* is numeral touching an alpha num? */ | ||
232 | save_and_next(ls); /* force an error */ | ||
231 | save(ls, '\0'); | 233 | save(ls, '\0'); |
232 | if (luaO_str2num(luaZ_buffer(ls->buff), &obj) == 0) /* format error? */ | 234 | if (luaO_str2num(luaZ_buffer(ls->buff), &obj) == 0) /* format error? */ |
233 | lexerror(ls, "malformed number", TK_FLT); | 235 | lexerror(ls, "malformed number", TK_FLT); |