Commit c4923056 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Allow '-' in identifiers.

For further study: should we accept RFC2616's definition of "token" ?



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@921 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent f0ee0838
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment