commit 2eaf9a00aed72d9a15a68967146655045c6798a8
parent 6c79a0a80d517354dcc19a1ef64569fba9b19365
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Wed, 22 Dec 1999 14:58:14 -0200
little bug: `1ea' got a wrong token at the error message
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/llex.c b/llex.c
@@ -1,5 +1,5 @@
/*
-** $Id: llex.c,v 1.45 1999/12/02 16:41:29 roberto Exp roberto $
+** $Id: llex.c,v 1.46 1999/12/14 18:31:20 roberto Exp roberto $
** Lexical Analyzer
** See Copyright Notice in lua.h
*/
@@ -401,7 +401,8 @@ int luaX_lex (LexState *LS) {
save_and_next(L, LS);
if (toupper(LS->current) == 'E') {
save_and_next(L, LS); /* read 'E' */
- save_and_next(L, LS); /* read '+', '-' or first digit */
+ if (LS->current == '+' || LS->current == '-')
+ save_and_next(L, LS); /* optional exponent signal */
while (isdigit(LS->current))
save_and_next(L, LS);
}