summaryrefslogtreecommitdiffstatshomepage
path: root/py/unicode.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/unicode.c')
-rw-r--r--py/unicode.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/py/unicode.c b/py/unicode.c
index ccf2b554e3..8be63f217a 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;