diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2007-05-11 14:28:56 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2007-05-11 14:28:56 -0300 |
| commit | aa003eba8e64046ebb5631eb9d94c2b556e2bab8 (patch) | |
| tree | ff826a34eefbfeab932441707ca70d3e21a4211a /llex.c | |
| parent | becf19feeffeb0bf2297e163da4ccc7b4b5e6b5c (diff) | |
| download | lua-aa003eba8e64046ebb5631eb9d94c2b556e2bab8.tar.gz lua-aa003eba8e64046ebb5631eb9d94c2b556e2bab8.tar.bz2 lua-aa003eba8e64046ebb5631eb9d94c2b556e2bab8.zip | |
details
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 | ||
