aboutsummaryrefslogtreecommitdiff
path: root/llex.c
diff options
context:
space:
mode:
Diffstat (limited to 'llex.c')
-rw-r--r--llex.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/llex.c b/llex.c
index 59d927d4..54e7f343 100644
--- a/llex.c
+++ b/llex.c
@@ -190,6 +190,9 @@ void luaX_setinput (lua_State *L, LexState *ls, ZIO *z, TString *source,
190 ls->lastline = 1; 190 ls->lastline = 1;
191 ls->source = source; 191 ls->source = source;
192 ls->envn = luaS_newliteral(L, LUA_ENV); /* get env name */ 192 ls->envn = luaS_newliteral(L, LUA_ENV); /* get env name */
193 ls->brkn = luaS_newliteral(L, "break"); /* get "break" name */
194 /* "break" cannot be collected, as it is a reserved word" */
195 lua_assert(isreserved(ls->brkn));
193 luaZ_resizebuffer(ls->L, ls->buff, LUA_MINBUFFER); /* initialize buffer */ 196 luaZ_resizebuffer(ls->L, ls->buff, LUA_MINBUFFER); /* initialize buffer */
194} 197}
195 198