On Mon, 12 Aug 2002, Paul B. Henson wrote:
>
> in putting together a rule set, I'm going to have a number of instances of
> variable definitions such as the following:
>
> foonets = "{ 10.0.0.0/24,
> 10.0.1.0/24,
> 10.0.2.0/24 }"
>
> I'd really like to be able to comment these in line, e.g.
>
> foonets = "{ 10.0.0.0/24, # subnet blah
> 10.0.1.0/24, # important stuff
> 10.0.2.0/24 # don't forget
> }"
>
>
> however, the parser does not currently support this. Is there any way to
> accomplish this type of commenting or achieve a similar documentation
> without using inline comments?
it does in -current, since July 19, 2002.
Check out http://www.openbsd.org/cgi-bin/cvsweb/src/sbin/pfctl/parse.y for
a complete list of changes, like string concatenation.
-f
http://www.blackant.net/