mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
'#' comments in config files are equivalent to end of line, therefore
also to implicit ';'.
This commit is contained in:
@@ -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>.
|
||||
|
Reference in New Issue
Block a user