diff options
Diffstat (limited to 'lex.c')
-rw-r--r-- | lex.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | char *rcs_lex = "$Id: lex.c,v 2.31 1996/03/19 16:50:24 roberto Exp roberto $"; | 1 | char *rcs_lex = "$Id: lex.c,v 2.32 1996/03/21 16:33:47 roberto Exp roberto $"; |
2 | 2 | ||
3 | 3 | ||
4 | #include <ctype.h> | 4 | #include <ctype.h> |
@@ -280,7 +280,13 @@ int luaY_lex (void) | |||
280 | if (current == '.') | 280 | if (current == '.') |
281 | { | 281 | { |
282 | save_and_next(); | 282 | save_and_next(); |
283 | return CONC; | 283 | if (current == '.') |
284 | { | ||
285 | save_and_next(); | ||
286 | return DOTS; /* ... */ | ||
287 | } | ||
288 | else | ||
289 | return CONC; /* .. */ | ||
284 | } | 290 | } |
285 | else if (!isdigit(current)) return '.'; | 291 | else if (!isdigit(current)) return '.'; |
286 | /* current is a digit: goes through to number */ | 292 | /* current is a digit: goes through to number */ |