diff options
Diffstat (limited to 'llex.c')
| -rw-r--r-- | llex.c | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -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 | ||
