mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 01:31:55 +00:00
'#' comments in config files are equivalent to end of line, therefore
also to implicit ';'.
This commit is contained in:
parent
5996da6a1d
commit
726141746b
2
TODO
2
TODO
@ -20,8 +20,6 @@ Core
|
||||
- default preferences of protocols: prefer BGP over OSPF/RIP external routes?
|
||||
- secondary addresses -> subinterfaces
|
||||
|
||||
- config: comments at end of line -> explicit ';' needed?
|
||||
|
||||
- static: check validity of route destination?
|
||||
- static: device routes
|
||||
|
||||
|
@ -120,24 +120,19 @@ WHITE [ \t]
|
||||
|
||||
{WHITE}+
|
||||
|
||||
\\\n {
|
||||
conf_lino++;
|
||||
}
|
||||
\\\n conf_lino++;
|
||||
\n { conf_lino++; return ';'; }
|
||||
|
||||
\n {
|
||||
conf_lino++;
|
||||
return ';';
|
||||
}
|
||||
# BEGIN(COMMENT);
|
||||
|
||||
# { BEGIN(COMMENT); }
|
||||
|
||||
\/\* { BEGIN(CCOMM); }
|
||||
\/\* BEGIN(CCOMM);
|
||||
|
||||
. cf_error("Unknown character");
|
||||
|
||||
<COMMENT>\n {
|
||||
conf_lino++;
|
||||
BEGIN(INITIAL);
|
||||
return ';';
|
||||
}
|
||||
|
||||
<COMMENT>.
|
||||
|
Loading…
Reference in New Issue
Block a user