summaryrefslogtreecommitdiff
path: root/src/llex.c
diff options
context:
space:
mode:
authorLua Team <team@lua.org>2010-11-22 12:00:00 +0000
committerrepogen <>2010-11-22 12:00:00 +0000
commitfb0603dc21768ef06c36dfebe3e812010cbb759a (patch)
tree9f2613bf0fdb20f9354032bd956f4e0ff1018adc /src/llex.c
parent850a3d8f8d2ef75c2e7579f31e3b301a72c279cd (diff)
downloadlua-github-5.2.0-alpha-rc3.tar.gz
Lua 5.2.0-alpha-rc35.2.0-alpha-rc3
Diffstat (limited to 'src/llex.c')
-rw-r--r--src/llex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/llex.c b/src/llex.c
index f1f87171..9980af71 100644
--- a/src/llex.c
+++ b/src/llex.c
@@ -1,5 +1,5 @@
/*
-** $Id: llex.c,v 2.40 2010/10/25 12:24:36 roberto Exp $
+** $Id: llex.c,v 2.41 2010/11/18 18:38:44 roberto Exp $
** Lexical Analyzer
** See Copyright Notice in lua.h
*/
@@ -471,10 +471,10 @@ static int llex (LexState *ls, SemInfo *seminfo) {
} while (lislalnum(ls->current));
ts = luaX_newstring(ls, luaZ_buffer(ls->buff),
luaZ_bufflen(ls->buff));
+ seminfo->ts = ts;
if (ts->tsv.reserved > 0) /* reserved word? */
return ts->tsv.reserved - 1 + FIRST_RESERVED;
else {
- seminfo->ts = ts;
return TK_NAME;
}
}