mirror of
https://github.com/lua/lua
synced 2026-09-27 08:33:22 +03:00
allows '\r' at the end of pragmas, so one can mix Windows and Unix files
This commit is contained in:
parent
b79ffdc4ce
commit
2e7595522d
1 changed files with 3 additions and 2 deletions
5
llex.c
5
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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue