commit | 69d9e7d27d62d54c0625d4181c80478b0313384d | [log] [tgz] |
---|---|---|
author | Alex March <alex.march.dev@gmail.com> | Tue Feb 16 13:36:18 2016 +0000 |
committer | Damien George <damien.p.george@gmail.com> | Wed Feb 17 08:56:15 2016 +0000 |
tree | e9d149ecc4c3eebaaffc69889ac787947b207fda | |
parent | dfc35afba14a29e00affabb6f496d453e005b8de [diff] [blame] |
py/repl: Check for an identifier char after the keyword. - As described in the #1850. - Add cmdline tests.
diff --git a/py/repl.c b/py/repl.c index 182961b..de0e8a4 100644 --- a/py/repl.c +++ b/py/repl.c
@@ -38,7 +38,7 @@ return false; } } - return head[i] == '\0' && (str[i] == '\0' || !unichar_isalpha(str[i])); + return head[i] == '\0' && (str[i] == '\0' || !unichar_isident(str[i])); } bool mp_repl_continue_with_input(const char *input) {