lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 38411aa102e926ee6e0d9a13ab7c233bf865ddab
parent 3ec4f4eb86f1644c82d6a140b889de2c2a4f6d6a
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Tue,  3 Oct 1995 15:05:51 -0300

small correction to avoid problems with DOS/Windows

Diffstat:
Mlex.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lex.c b/lex.c @@ -1,4 +1,4 @@ -char *rcs_lex = "$Id: lex.c,v 2.15 1995/07/06 17:47:08 roberto Exp roberto $"; +char *rcs_lex = "$Id: lex.c,v 2.16 1995/09/15 20:48:26 roberto Exp $"; #include <ctype.h> @@ -161,6 +161,7 @@ int yylex (void) return 0; case '\n': lua_linenumber++; case ' ': + case '\r': /* CR: to avoid problems with DOS/Windows */ case '\t': next(); continue;