From 2e7595522db676e77ee057f091dcc10a0f3d885f Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 19 Nov 1997 15:35:47 -0200 Subject: [PATCH] allows '\r' at the end of pragmas, so one can mix Windows and Unix files --- llex.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/llex.c b/llex.c index 38e72c5d..e2afba0e 100644 --- a/llex.c +++ b/llex.c @@ -1,5 +1,5 @@ /* -** $Id: llex.c,v 1.5 1997/11/07 15:09:49 roberto Exp roberto $ +** $Id: llex.c,v 1.6 1997/11/19 17:29:23 roberto Exp roberto $ ** Lexical Analizer ** See Copyright Notice in lua.h */ @@ -83,7 +83,8 @@ void luaX_setinput (ZIO *z) static void skipspace (LexState *LL) { - while (LL->current == ' ' || LL->current == '\t') next(LL); + while (LL->current == ' ' || LL->current == '\t' || LL->current == '\r') + next(LL); }