Rework the parser a bit to be more sane when it comes to newline and comma
authorclaudio <claudio@openbsd.org>
Sun, 9 Sep 2018 13:22:41 +0000 (13:22 +0000)
committerclaudio <claudio@openbsd.org>
Sun, 9 Sep 2018 13:22:41 +0000 (13:22 +0000)
commit4ea66b693b151debd8ef61045a886ae5edac2fb3
tree206d8f9c6b60e6c68a9146deec4c756abae13df4
parent945977706ead97bc65f2eb8dd07a37ee46480a6b
Rework the parser a bit to be more sane when it comes to newline and comma
handling. In expansion lists we want that commas and newlines are allowed
but optional. In the neighbor, group and rdomain blocks statements need to
be newline separated but neighbor 192.0.2.3 { descr "test-peer" } is allowed.
OK sthen@ benno@
usr.sbin/bgpd/parse.y
usr.sbin/bgpd/printconf.c