aboutsummaryrefslogtreecommitdiff
path: root/py/repl.c
diff options
context:
space:
mode:
authorAlex March <alex.march.dev@gmail.com>2016-02-16 13:36:18 +0000
committerDamien George <damien.p.george@gmail.com>2016-02-17 08:56:15 +0000
commit69d9e7d27d62d54c0625d4181c80478b0313384d (patch)
treee9d149ecc4c3eebaaffc69889ac787947b207fda /py/repl.c
parentdfc35afba14a29e00affabb6f496d453e005b8de (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/repl.c b/py/repl.c
index 182961b4b..de0e8a4e7 100644
--- a/py/repl.c
+++ b/py/repl.c
@@ -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) {