mirror of https://github.com/rusefi/lua.git
small correction to avoid problems with DOS/Windows
This commit is contained in:
parent
3ec4f4eb86
commit
38411aa102
3
lex.c
3
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>
|
#include <ctype.h>
|
||||||
|
@ -161,6 +161,7 @@ int yylex (void)
|
||||||
return 0;
|
return 0;
|
||||||
case '\n': lua_linenumber++;
|
case '\n': lua_linenumber++;
|
||||||
case ' ':
|
case ' ':
|
||||||
|
case '\r': /* CR: to avoid problems with DOS/Windows */
|
||||||
case '\t':
|
case '\t':
|
||||||
next();
|
next();
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue