From 69d9e7d27d62d54c0625d4181c80478b0313384d Mon Sep 17 00:00:00 2001 From: Alex March Date: Tue, 16 Feb 2016 13:36:18 +0000 Subject: py/repl: Check for an identifier char after the keyword. - As described in the #1850. - Add cmdline tests. --- py/unicode.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'py/unicode.c') 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; -- cgit v1.2.3