** Check whether current char is in set 'set' (with two chars) and ** saves it */
| 219 | ** saves it |
| 220 | */ |
| 221 | static int check_next2 (LexState *ls, const char *set) { |
| 222 | lua_assert(set[2] == '\0'); |
| 223 | if (ls->current == set[0] || ls->current == set[1]) { |
| 224 | save_and_next(ls); |
| 225 | return 1; |
| 226 | } |
| 227 | else return 0; |
| 228 | } |
| 229 | |
| 230 | |
| 231 | /* LUA_NUMBER */ |