config: allow to omit empty network sections
This commit is contained in:
parent
aa20bcc6eb
commit
cbbfe4360d
1 changed files with 5 additions and 1 deletions
|
@ -97,7 +97,7 @@ config: config statement
|
|||
|
|
||||
;
|
||||
|
||||
statement: TOK_NETWORK network '{' network_config '}'
|
||||
statement: TOK_NETWORK network network_tail
|
||||
| TOK_PROTOCOL protocol ';'
|
||||
| TOK_NODE node '{' node_config '}'
|
||||
;
|
||||
|
@ -108,6 +108,10 @@ network: TOK_STRING {
|
|||
}
|
||||
;
|
||||
|
||||
network_tail:
|
||||
'{' network_config '}'
|
||||
| ';'
|
||||
|
||||
network_config: network_config network_statement
|
||||
|
|
||||
;
|
||||
|
|
Reference in a new issue