aboutsummaryrefslogtreecommitdiff
path: root/llex.c
diff options
context:
space:
mode:
Diffstat (limited to 'llex.c')
-rw-r--r--llex.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/llex.c b/llex.c
index d16cb99f..e4c4936a 100644
--- a/llex.c
+++ b/llex.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llex.c,v 1.68 2000/08/22 20:07:56 roberto Exp $ 2** $Id: llex.c,v 1.69 2000/09/11 17:38:42 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*/
@@ -11,7 +11,6 @@
11 11
12#include "lua.h" 12#include "lua.h"
13 13
14#include "lauxlib.h"
15#include "llex.h" 14#include "llex.h"
16#include "lmem.h" 15#include "lmem.h"
17#include "lobject.h" 16#include "lobject.h"
@@ -58,8 +57,8 @@ void luaX_checklimit (LexState *ls, int val, int limit, const char *msg) {
58 57
59void luaX_syntaxerror (LexState *ls, const char *s, const char *token) { 58void luaX_syntaxerror (LexState *ls, const char *s, const char *token) {
60 char buff[MAXSRC]; 59 char buff[MAXSRC];
61 luaL_chunkid(buff, ls->source->str, sizeof(buff)); 60 luaO_chunkid(buff, ls->source->str, sizeof(buff));
62 luaL_verror(ls->L, "%.100s;\n last token read: `%.50s' at line %d in %.80s", 61 luaO_verror(ls->L, "%.100s;\n last token read: `%.50s' at line %d in %.80s",
63 s, token, ls->linenumber, buff); 62 s, token, ls->linenumber, buff);
64} 63}
65 64