diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-04-21 01:42:20 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-04-21 01:42:20 +0000 |
commit | 18bdd5596e34d387beb411af11007879bb3486bc (patch) | |
tree | cc980a08b839f1aeaf39983c6e94508ab5b98023 | |
parent | 36bf5b189175ea403450119f66c0fc6b0065200b (diff) |
optnl is a crutch for those who do not understand yacc. it
leads to a variety of errors; ok mcbride
-rw-r--r-- | sbin/pfctl/parse.y | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index c4189963198..19b361dfcdc 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.536 2008/02/01 06:58:45 mcbride Exp $ */ +/* $OpenBSD: parse.y,v 1.537 2008/04/21 01:42:19 deraadt Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. @@ -702,14 +702,10 @@ anchorname : STRING { $$ = $1; } | /* empty */ { $$ = NULL; } ; -optnl : optnl '\n' - | - ; - -pfa_anchorlist : pfrule optnl - | anchorrule optnl - | pfa_anchorlist pfrule optnl - | pfa_anchorlist anchorrule optnl +pfa_anchorlist : /* empty */ + | pfa_anchorlist '\n' + | pfa_anchorlist pfrule '\n' + | pfa_anchorlist anchorrule '\n' ; pfa_anchor : '{' |