From bfc922c84c6895d2e3a5f9a24ce53685a772575d Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Mon, 19 Jul 2021 13:37:00 +0200 Subject: [PATCH] A dot in front of v() is a valid character --- src/frontend/postcoms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/postcoms.c b/src/frontend/postcoms.c index d85b3fcfe..d5fd4d444 100644 --- a/src/frontend/postcoms.c +++ b/src/frontend/postcoms.c @@ -79,7 +79,7 @@ struct pnode* ft_getpnames_quotes(wordlist* wl, bool check) /* put double quotes around tokens which start with math or number chars */ while (*tmpstr != '\0') { /*check if we have v(something) at the beginning after arithchar or space */ - if (tmpstr[0] == 'v' && tmpstr[1] == '(' && (nsz == tmpstr || isspace_c(tmpstr[-1]) || is_arith_char(tmpstr[-1]))) { + if (tmpstr[0] == 'v' && tmpstr[1] == '(' && (nsz == tmpstr || isspace_c(tmpstr[-1]) || is_arith_char(tmpstr[-1]) || tmpstr[-1] == '.')) { char* tmpstr2, * partoken2 = NULL; tmpstr += 2; /* get the complete zzz of v(zzz) */