diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-10-03 15:06:10 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-10-03 15:06:10 -0300 |
| commit | 38411aa102e926ee6e0d9a13ab7c233bf865ddab (patch) | |
| tree | bfb9ca0282d0fa2cfe61728548c42221f598e0a2 | |
| parent | 3ec4f4eb86f1644c82d6a140b889de2c2a4f6d6a (diff) | |
| download | lua-38411aa102e926ee6e0d9a13ab7c233bf865ddab.tar.gz lua-38411aa102e926ee6e0d9a13ab7c233bf865ddab.tar.bz2 lua-38411aa102e926ee6e0d9a13ab7c233bf865ddab.zip | |
small correction to avoid problems with DOS/Windows
| -rw-r--r-- | lex.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -1,4 +1,4 @@ | |||
| 1 | char *rcs_lex = "$Id: lex.c,v 2.15 1995/07/06 17:47:08 roberto Exp roberto $"; | 1 | char *rcs_lex = "$Id: lex.c,v 2.16 1995/09/15 20:48:26 roberto Exp $"; |
| 2 | 2 | ||
| 3 | 3 | ||
| 4 | #include <ctype.h> | 4 | #include <ctype.h> |
| @@ -161,6 +161,7 @@ int yylex (void) | |||
| 161 | return 0; | 161 | return 0; |
| 162 | case '\n': lua_linenumber++; | 162 | case '\n': lua_linenumber++; |
| 163 | case ' ': | 163 | case ' ': |
| 164 | case '\r': /* CR: to avoid problems with DOS/Windows */ | ||
| 164 | case '\t': | 165 | case '\t': |
| 165 | next(); | 166 | next(); |
| 166 | continue; | 167 | continue; |
