diff options
| -rw-r--r-- | lex.c | 10 |
1 files changed, 6 insertions, 4 deletions
| @@ -1,4 +1,4 @@ | |||
| 1 | char *rcs_lex = "$Id: lex.c,v 2.43 1997/03/18 15:30:50 roberto Exp roberto $"; | 1 | char *rcs_lex = "$Id: lex.c,v 2.44 1997/03/31 14:17:09 roberto Exp roberto $"; |
| 2 | 2 | ||
| 3 | 3 | ||
| 4 | #include <ctype.h> | 4 | #include <ctype.h> |
| @@ -337,11 +337,13 @@ int luaY_lex (void) | |||
| 337 | return NUMBER; | 337 | return NUMBER; |
| 338 | } | 338 | } |
| 339 | 339 | ||
| 340 | default: /* also end of program (0) */ | 340 | case 0: |
| 341 | { | 341 | save(0); |
| 342 | return 0; | ||
| 343 | |||
| 344 | default: | ||
| 342 | save_and_next(); | 345 | save_and_next(); |
| 343 | return yytext[0]; | 346 | return yytext[0]; |
| 344 | } | ||
| 345 | } | 347 | } |
| 346 | } | 348 | } |
| 347 | } | 349 | } |
