aboutsummaryrefslogtreecommitdiff
path: root/llex.c
diff options
context:
space:
mode:
Diffstat (limited to 'llex.c')
-rw-r--r--llex.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/llex.c b/llex.c
index 4bbe6cfb..adb3527c 100644
--- a/llex.c
+++ b/llex.c
@@ -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
445void luaX_lookahead (LexState *ls) { 445int 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