aboutsummaryrefslogtreecommitdiff
path: root/llex.c
diff options
context:
space:
mode:
Diffstat (limited to 'llex.c')
-rw-r--r--llex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/llex.c b/llex.c
index 77156bfe..7341dc1d 100644
--- a/llex.c
+++ b/llex.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llex.c,v 1.114 2002/10/09 13:00:08 roberto Exp roberto $ 2** $Id: llex.c,v 1.115 2002/10/22 16:45:52 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*/
@@ -70,11 +70,11 @@ void luaX_syntaxerror (LexState *ls, const char *msg) {
70 const char *lasttoken; 70 const char *lasttoken;
71 switch (ls->t.token) { 71 switch (ls->t.token) {
72 case TK_NAME: 72 case TK_NAME:
73 lasttoken = luaO_pushfstring(ls->L, "%s", getstr(ls->t.seminfo.ts)); 73 lasttoken = getstr(ls->t.seminfo.ts);
74 break; 74 break;
75 case TK_STRING: 75 case TK_STRING:
76 case TK_NUMBER: 76 case TK_NUMBER:
77 lasttoken = luaO_pushfstring(ls->L, "%s", luaZ_buffer(ls->buff)); 77 lasttoken = luaZ_buffer(ls->buff);
78 break; 78 break;
79 default: 79 default:
80 lasttoken = luaX_token2str(ls, ls->t.token); 80 lasttoken = luaX_token2str(ls, ls->t.token);