From 521925a3d25449f429e89a20145f14f259014368 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 27 Sep 2016 22:44:37 +0200 Subject: sam: allow non-latin command names Close #387 --- sam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sam.c b/sam.c index 6c77861..3eb2d02 100644 --- a/sam.c +++ b/sam.c @@ -378,7 +378,7 @@ static char *parse_cmdname(const char **s) { Buffer buf; buffer_init(&buf); - while (isalpha((unsigned char)**s) || **s == '-') + while (**s && **s != ' ' && (!ispunct((unsigned char)**s) || **s == '-')) buffer_append(&buf, (*s)++, 1); if (buffer_length(&buf)) -- cgit v1.2.3