diff options
Diffstat (limited to 'llex.c')
| -rw-r--r-- | llex.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: llex.c,v 2.23 2006/09/18 16:06:41 roberto Exp roberto $ | 2 | ** $Id: llex.c,v 2.24 2007/02/07 17:49:18 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 | */ |
| @@ -442,8 +442,9 @@ void luaX_next (LexState *ls) { | |||
| 442 | } | 442 | } |
| 443 | 443 | ||
| 444 | 444 | ||
| 445 | void luaX_lookahead (LexState *ls) { | 445 | int luaX_lookahead (LexState *ls) { |
| 446 | lua_assert(ls->lookahead.token == TK_EOS); | 446 | lua_assert(ls->lookahead.token == TK_EOS); |
| 447 | ls->lookahead.token = llex(ls, &ls->lookahead.seminfo); | 447 | ls->lookahead.token = llex(ls, &ls->lookahead.seminfo); |
| 448 | return ls->lookahead.token; | ||
| 448 | } | 449 | } |
| 449 | 450 | ||
