| 124 | |
| 125 | |
| 126 | static void check_match (LexState *ls, int what, int who, int where) { |
| 127 | if (!testnext(ls, what)) { |
| 128 | if (where == ls->linenumber) |
| 129 | error_expected(ls, what); |
| 130 | else { |
| 131 | luaX_syntaxerror(ls, luaO_pushfstring(ls->L, |
| 132 | "%s expected (to close %s at line %d)", |
| 133 | luaX_token2str(ls, what), luaX_token2str(ls, who), where)); |
| 134 | } |
| 135 | } |
| 136 | } |
| 137 | |
| 138 | |
| 139 | static TString *str_checkname (LexState *ls) { |
no test coverage detected