[master] 169e162 Enforce that VCL names must be C-language identifiers ([A-Za-z][A-Za-z0-9_]*)

Poul-Henning Kamp phk at phk.freebsd.dk
Thu Sep 8 14:28:23 CEST 2016


--------
In message <CAJV_h0ZrTPpdf0u0PnjS1Vb1gnxW0Auk7SGKuCReGwTEQW9Ajg at mail.gmail.com>
, Federico Schwindt writes:

>Isn't dash (-) usage quite widespread?
>
>I'd expect it to be the most common character outside digits and numbers.

The problem is that VCL label names need to be C-idents, and I'm
not terribly keen on having different namespace for VCL labels and
"real" VCLs.

The alternative would be to encode a freer form into C-idents, but that
turns really ugly really fast...

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



More information about the varnish-commit mailing list