aboutsummaryrefslogtreecommitdiff
path: root/llex.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-11-19 15:35:47 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-11-19 15:35:47 -0200
commit2e7595522db676e77ee057f091dcc10a0f3d885f (patch)
tree0af3990d781c1f0159d526ee331eef4ce994b612 /llex.c
parentb79ffdc4cef96ababe0cc068a6c11afdc71782eb (diff)
downloadlua-2e7595522db676e77ee057f091dcc10a0f3d885f.tar.gz
lua-2e7595522db676e77ee057f091dcc10a0f3d885f.tar.bz2
lua-2e7595522db676e77ee057f091dcc10a0f3d885f.zip
allows '\r' at the end of pragmas, so one can mix Windows and Unix files
Diffstat (limited to 'llex.c')
-rw-r--r--llex.c5
1 files 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 @@
1/* 1/*
2** $Id: llex.c,v 1.5 1997/11/07 15:09:49 roberto Exp roberto $ 2** $Id: llex.c,v 1.6 1997/11/19 17:29:23 roberto Exp roberto $
3** Lexical Analizer 3** Lexical Analizer
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -83,7 +83,8 @@ void luaX_setinput (ZIO *z)
83 83
84static void skipspace (LexState *LL) 84static void skipspace (LexState *LL)
85{ 85{
86 while (LL->current == ' ' || LL->current == '\t') next(LL); 86 while (LL->current == ' ' || LL->current == '\t' || LL->current == '\r')
87 next(LL);
87} 88}
88 89
89 90