| 7678 | |
| 7679 | |
| 7680 | static void check_match (LexState *ls, int what, int who, int where) { |
| 7681 | if (!testnext(ls, what)) { |
| 7682 | if (where == ls->linenumber) |
| 7683 | error_expected(ls, what); |
| 7684 | else { |
| 7685 | luaX_syntaxerror(ls, luaO_pushfstring(ls->L, |
| 7686 | LUA_QS " expected (to close " LUA_QS " at line %d)", |
| 7687 | luaX_token2str(ls, what), luaX_token2str(ls, who), where)); |
| 7688 | } |
| 7689 | } |
| 7690 | } |
| 7691 | |
| 7692 | |
| 7693 | static TString *str_checkname (LexState *ls) { |
no test coverage detected