** Check whether current char is in set 'set' (with two chars) and ** saves it */
| 200 | ** saves it |
| 201 | */ |
| 202 | static int check_next2 (LexState *ls, const char *set) { |
| 203 | lua_assert(set[2] == '\0'); |
| 204 | if (ls->current == set[0] || ls->current == set[1]) { |
| 205 | save_and_next(ls); |
| 206 | return 1; |
| 207 | } |
| 208 | else return 0; |
| 209 | } |
| 210 | |
| 211 | |
| 212 | /* LUA_NUMBER */ |