summaryrefslogtreecommitdiff
path: root/llex.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-06-21 15:13:56 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-06-21 15:13:56 -0300
commitb69e712713785394ceefa11ab3e5f9636abea733 (patch)
tree0fa1b8b00ffbb5cfe0113d290b48b4fc528d2695 /llex.c
parentf51775950737eb4d097cda0bba143973b5385947 (diff)
downloadlua-github-b69e712713785394ceefa11ab3e5f9636abea733.tar.gz
new way to generate SETLINEs
Diffstat (limited to 'llex.c')
-rw-r--r--llex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/llex.c b/llex.c
index f251ab9c..50ffc951 100644
--- a/llex.c
+++ b/llex.c
@@ -1,5 +1,5 @@
/*
-** $Id: llex.c,v 1.63 2000/06/12 13:52:05 roberto Exp roberto $
+** $Id: llex.c,v 1.64 2000/06/19 18:05:14 roberto Exp roberto $
** Lexical Analyzer
** See Copyright Notice in lua.h
*/
@@ -138,6 +138,7 @@ void luaX_setinput (lua_State *L, LexState *LS, ZIO *z, TString *source) {
LS->z = z;
LS->fs = NULL;
LS->linenumber = 1;
+ LS->lastline = 1;
LS->source = source;
next(LS); /* read first char */
if (LS->current == '#') {