diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-10-23 16:08:13 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-10-23 16:08:13 -0300 |
commit | a2b353e0441f05c1c95793dd2ebdca0da3994e12 (patch) | |
tree | d27b8f3c98afb271070020235aa414e608cc9e14 | |
parent | 92a2ef9dca6ef7a82140e0a4b11491fbdad10d96 (diff) | |
download | lua-a2b353e0441f05c1c95793dd2ebdca0da3994e12.tar.gz lua-a2b353e0441f05c1c95793dd2ebdca0da3994e12.tar.bz2 lua-a2b353e0441f05c1c95793dd2ebdca0da3994e12.zip |
details
-rw-r--r-- | llex.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |