]> git.ipfire.org Git - thirdparty/bird.git/commit
A hack to distinguish if..else from else: in case.
authorOndrej Zajicek <santiago@crfreenet.org>
Wed, 23 Mar 2011 11:49:53 +0000 (12:49 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Wed, 23 Mar 2011 11:49:53 +0000 (12:49 +0100)
commit26d92bb8921ac4e022cdc88bde8fc7bc617f8766
tree5e900b466e46e1848b4d2bd98a5894cf6214b08b
parent6bcef22580010aec695fb2b559c7b33ee00261b0
A hack to distinguish if..else from else: in case.

The old BIRD grammar needs two lookaheads to distinguish if..else from
else: in case, which caused the parser to fail on some combinations of
both expressions.

This patch replaces two tokens 'else' ':' by one token 'else:' to fix
that.
conf/cf-lex.l
conf/confbase.Y
doc/bird.sgml
filter/config.Y
filter/test.conf