From aa003eba8e64046ebb5631eb9d94c2b556e2bab8 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 11 May 2007 14:28:56 -0300 Subject: details --- llex.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'llex.c') diff --git a/llex.c b/llex.c index 4bbe6cfb..adb3527c 100644 --- a/llex.c +++ b/llex.c @@ -1,5 +1,5 @@ /* -** $Id: llex.c,v 2.23 2006/09/18 16:06:41 roberto Exp roberto $ +** $Id: llex.c,v 2.24 2007/02/07 17:49:18 roberto Exp roberto $ ** Lexical Analyzer ** See Copyright Notice in lua.h */ @@ -442,8 +442,9 @@ void luaX_next (LexState *ls) { } -void luaX_lookahead (LexState *ls) { +int luaX_lookahead (LexState *ls) { lua_assert(ls->lookahead.token == TK_EOS); ls->lookahead.token = llex(ls, &ls->lookahead.seminfo); + return ls->lookahead.token; } -- cgit v1.2.3-55-g6feb