aboutsummaryrefslogtreecommitdiff
path: root/llex.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-05-15 09:20:24 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-05-15 09:20:24 -0300
commit176cd7d1a394cc9df27a62ab7cd9adba005c5c72 (patch)
tree1c38193aa7ab82001fd581850cf095735b431ca2 /llex.c
parent859c7f7ce0ce6dfdbd3586535a47eaf562d60f37 (diff)
downloadlua-176cd7d1a394cc9df27a62ab7cd9adba005c5c72.tar.gz
lua-176cd7d1a394cc9df27a62ab7cd9adba005c5c72.tar.bz2
lua-176cd7d1a394cc9df27a62ab7cd9adba005c5c72.zip
`#!' is detected by loadfile, not by the lexer
Diffstat (limited to 'llex.c')
-rw-r--r--llex.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/llex.c b/llex.c
index a172b506..d637cbc3 100644
--- a/llex.c
+++ b/llex.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llex.c,v 1.118 2003/02/28 17:19:47 roberto Exp roberto $ 2** $Id: llex.c,v 1.119 2003/03/24 12:39:34 roberto Exp roberto $
3** Lexical Analyzer 3** Lexical Analyzer
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -125,11 +125,6 @@ void luaX_setinput (lua_State *L, LexState *LS, ZIO *z, TString *source) {
125 LS->lastline = 1; 125 LS->lastline = 1;
126 LS->source = source; 126 LS->source = source;
127 next(LS); /* read first char */ 127 next(LS); /* read first char */
128 if (LS->current == '#') {
129 do { /* skip first line */
130 next(LS);
131 } while (LS->current != '\n' && LS->current != EOZ);
132 }
133} 128}
134 129
135 130