aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1995-10-03 15:06:10 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1995-10-03 15:06:10 -0300
commit38411aa102e926ee6e0d9a13ab7c233bf865ddab (patch)
treebfb9ca0282d0fa2cfe61728548c42221f598e0a2
parent3ec4f4eb86f1644c82d6a140b889de2c2a4f6d6a (diff)
downloadlua-38411aa102e926ee6e0d9a13ab7c233bf865ddab.tar.gz
lua-38411aa102e926ee6e0d9a13ab7c233bf865ddab.tar.bz2
lua-38411aa102e926ee6e0d9a13ab7c233bf865ddab.zip
small correction to avoid problems with DOS/Windows
-rw-r--r--lex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lex.c b/lex.c
index 9a1d3635..675a944f 100644
--- a/lex.c
+++ b/lex.c
@@ -1,4 +1,4 @@
1char *rcs_lex = "$Id: lex.c,v 2.15 1995/07/06 17:47:08 roberto Exp roberto $"; 1char *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;