From: phk Date: Wed, 6 Sep 2006 10:45:55 +0000 (+0000) Subject: Allow '-' in identifiers. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0de8d47f976791fb122cb36dc62b1e538dafe8ec;p=varnish Allow '-' in identifiers. For further study: should we accept RFC2616's definition of "token" ? git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@921 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/lib/libvcl/vcc_priv.h b/varnish-cache/lib/libvcl/vcc_priv.h index a5ddb08c..e7d9ea78 100644 --- a/varnish-cache/lib/libvcl/vcc_priv.h +++ b/varnish-cache/lib/libvcl/vcc_priv.h @@ -5,7 +5,7 @@ #include "vcc_token_defs.h" #define isident1(c) (isalpha(c)) -#define isident(c) (isalpha(c) || isdigit(c) || (c) == '_') +#define isident(c) (isalpha(c) || isdigit(c) || (c) == '_' || (c) == '-') #define isvar(c) (isident(c) || (c) == '.') unsigned vcl_fixed_token(const char *p, const char **q); extern const char *vcl_tnames[256];