aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-04-18 07:03:43 +0200
committerMattias Andrée <maandree@kth.se>2021-04-18 07:03:43 +0200
commit65720539e9960da989d21233720bf26ac4854103 (patch)
treefaf582cf0ad860567ae575f37152f91e659c9a12
parentSimplify whitespace in grammar representation (diff)
downloadlibparser-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.c2
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 == '_';
}