| 102 | |
| 103 | |
| 104 | static void check_match (LexState *ls, int what, int who, int where) { |
| 105 | if (!testnext(ls, what)) { |
| 106 | if (where == ls->linenumber) |
| 107 | error_expected(ls, what); |
| 108 | else { |
| 109 | luaX_syntaxerror(ls, luaO_pushfstring(ls->L, |
| 110 | LUA_QS " expected (to close " LUA_QS " at line %d)", |
| 111 | luaX_token2str(ls, what), luaX_token2str(ls, who), where)); |
| 112 | } |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | |
| 117 | static TString *str_checkname (LexState *ls) { |
no test coverage detected