diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-11-19 15:35:47 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-11-19 15:35:47 -0200 |
commit | 2e7595522db676e77ee057f091dcc10a0f3d885f (patch) | |
tree | 0af3990d781c1f0159d526ee331eef4ce994b612 /llex.c | |
parent | b79ffdc4cef96ababe0cc068a6c11afdc71782eb (diff) | |
download | lua-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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 | ||
84 | static void skipspace (LexState *LL) | 84 | static 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 | ||