]> err.no Git - varnish/commitdiff
Allow '-' in identifiers.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 6 Sep 2006 10:45:55 +0000 (10:45 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 6 Sep 2006 10:45:55 +0000 (10:45 +0000)
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

varnish-cache/lib/libvcl/vcc_priv.h

index a5ddb08cbfd979726b985cca8093e5752c87876a..e7d9ea78c2a653b6219f561163e772e4f7eb8fb0 100644 (file)
@@ -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];