aboutsummaryrefslogtreecommitdiff
path: root/lparser.c
diff options
context:
space:
mode:
Diffstat (limited to 'lparser.c')
-rw-r--r--lparser.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lparser.c b/lparser.c
index 12face39..2d3720ce 100644
--- a/lparser.c
+++ b/lparser.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lparser.c,v 2.49 2006/10/24 13:31:48 roberto Exp roberto $ 2** $Id: lparser.c,v 2.50 2006/11/22 11:02:03 roberto Exp roberto $
3** Lua Parser 3** Lua Parser
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -64,7 +64,7 @@ static void anchor_token (LexState *ls) {
64 64
65static void error_expected (LexState *ls, int token) { 65static void error_expected (LexState *ls, int token) {
66 luaX_syntaxerror(ls, 66 luaX_syntaxerror(ls,
67 luaO_pushfstring(ls->L, LUA_QS " expected", luaX_token2str(ls, token))); 67 luaO_pushfstring(ls->L, "%s expected", luaX_token2str(ls, token)));
68} 68}
69 69
70 70
@@ -109,7 +109,7 @@ static void check_match (LexState *ls, int what, int who, int where) {
109 error_expected(ls, what); 109 error_expected(ls, what);
110 else { 110 else {
111 luaX_syntaxerror(ls, luaO_pushfstring(ls->L, 111 luaX_syntaxerror(ls, luaO_pushfstring(ls->L,
112 LUA_QS " expected (to close " LUA_QS " at line %d)", 112 "%s expected (to close %s at line %d)",
113 luaX_token2str(ls, what), luaX_token2str(ls, who), where)); 113 luaX_token2str(ls, what), luaX_token2str(ls, who), where));
114 } 114 }
115 } 115 }
@@ -734,7 +734,7 @@ static void primaryexp (LexState *ls, expdesc *v) {
734 734
735 735
736static void simpleexp (LexState *ls, expdesc *v) { 736static void simpleexp (LexState *ls, expdesc *v) {
737 /* simpleexp -> NUMBER | STRING | NIL | true | false | ... | 737 /* simpleexp -> NUMBER | STRING | NIL | TRUE | FALSE | ... |
738 constructor | FUNCTION body | primaryexp */ 738 constructor | FUNCTION body | primaryexp */
739 switch (ls->t.token) { 739 switch (ls->t.token) {
740 case TK_NUMBER: { 740 case TK_NUMBER: {