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