py/repl: Check for an identifier char after the keyword.

- As described in the #1850.
- Add cmdline tests.
This commit is contained in:
Alex March
2016-02-16 13:36:18 +00:00
committed by Damien George
parent dfc35afba1
commit 69d9e7d27d
5 changed files with 11 additions and 5 deletions

View File

@@ -145,11 +145,9 @@ bool unichar_isxdigit(unichar c) {
return c < 128 && (attr[c] & FL_XDIGIT) != 0;
}
/*
bool unichar_is_alpha_or_digit(unichar c) {
return c < 128 && (attr[c] & (FL_ALPHA | FL_DIGIT)) != 0;
bool unichar_isident(unichar c) {
return c < 128 && ((attr[c] & (FL_ALPHA | FL_DIGIT)) != 0 || c == '_');
}
*/
bool unichar_isupper(unichar c) {
return c < 128 && (attr[c] & FL_UPPER) != 0;