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