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