diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-12-22 14:58:36 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-12-22 14:58:36 -0200 |
commit | 2eaf9a00aed72d9a15a68967146655045c6798a8 (patch) | |
tree | c318a878cbf75de5f2e718bc5e88cbce0acf3905 /llex.c | |
parent | 6c79a0a80d517354dcc19a1ef64569fba9b19365 (diff) | |
download | lua-2eaf9a00aed72d9a15a68967146655045c6798a8.tar.gz lua-2eaf9a00aed72d9a15a68967146655045c6798a8.tar.bz2 lua-2eaf9a00aed72d9a15a68967146655045c6798a8.zip |
little bug: `1ea' got a wrong token at the error message
Diffstat (limited to 'llex.c')
-rw-r--r-- | llex.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llex.c,v 1.45 1999/12/02 16:41:29 roberto Exp roberto $ | 2 | ** $Id: llex.c,v 1.46 1999/12/14 18:31:20 roberto Exp roberto $ |
3 | ** Lexical Analyzer | 3 | ** Lexical Analyzer |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -401,7 +401,8 @@ int luaX_lex (LexState *LS) { | |||
401 | save_and_next(L, LS); | 401 | save_and_next(L, LS); |
402 | if (toupper(LS->current) == 'E') { | 402 | if (toupper(LS->current) == 'E') { |
403 | save_and_next(L, LS); /* read 'E' */ | 403 | save_and_next(L, LS); /* read 'E' */ |
404 | save_and_next(L, LS); /* read '+', '-' or first digit */ | 404 | if (LS->current == '+' || LS->current == '-') |
405 | save_and_next(L, LS); /* optional exponent signal */ | ||
405 | while (isdigit(LS->current)) | 406 | while (isdigit(LS->current)) |
406 | save_and_next(L, LS); | 407 | save_and_next(L, LS); |
407 | } | 408 | } |