diff options
author | Mattias Andrée <maandree@kth.se> | 2021-04-18 07:03:43 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-04-18 07:03:43 +0200 |
commit | 65720539e9960da989d21233720bf26ac4854103 (patch) | |
tree | faf582cf0ad860567ae575f37152f91e659c9a12 | |
parent | Simplify whitespace in grammar representation (diff) | |
download | libparser-65720539e9960da989d21233720bf26ac4854103.tar.gz libparser-65720539e9960da989d21233720bf26ac4854103.tar.bz2 libparser-65720539e9960da989d21233720bf26ac4854103.tar.xz |
Use isalnum instead of isalpha and isdigit
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | libparser-generate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libparser-generate.c b/libparser-generate.c index 5b8ae25..4ad1621 100644 --- a/libparser-generate.c +++ b/libparser-generate.c @@ -108,7 +108,7 @@ strpcmp(const void *av, const void *bv) static int isidentifier(char c) { - return isalpha(c) || isdigit(c) || !isascii(c) || c == '_'; + return isalnum(c) || !isascii(c) || c == '_'; } |