diff options
author | Alex March <alex.march.dev@gmail.com> | 2016-02-16 13:36:18 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-02-17 08:56:15 +0000 |
commit | 69d9e7d27d62d54c0625d4181c80478b0313384d (patch) | |
tree | e9d149ecc4c3eebaaffc69889ac787947b207fda /py/unicode.c | |
parent | dfc35afba14a29e00affabb6f496d453e005b8de (diff) |
py/repl: Check for an identifier char after the keyword.
- As described in the #1850.
- Add cmdline tests.
Diffstat (limited to 'py/unicode.c')
-rw-r--r-- | py/unicode.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/py/unicode.c b/py/unicode.c index ccf2b554e..8be63f217 100644 --- a/py/unicode.c +++ b/py/unicode.c @@ -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; |