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/repl.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/repl.c')
-rw-r--r-- | py/repl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -38,7 +38,7 @@ STATIC bool str_startswith_word(const char *str, const char *head) { 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) { |