Commit 7acfea80 authored by Tomek Mrugalski's avatar Tomek Mrugalski 🛰
Browse files

[5357] empty shared-networks is now allowed

parent 0a90abf2
......@@ -965,11 +965,17 @@ shared_networks: SHARED_NETWORKS {
ctx.stack_.back()->set("shared-networks", l);
ctx.stack_.push_back(l);
ctx.enter(ctx.SHARED_NETWORK);
} COLON LSQUARE_BRACKET shared_networks_list RSQUARE_BRACKET {
} COLON LSQUARE_BRACKET shared_networks_content RSQUARE_BRACKET {
ctx.stack_.pop_back();
ctx.leave();
};
// This allows 0 or more shared network definitions.
shared_networks_content: %empty
| shared_networks_list
;
// This allows 1 or more shared network definitions.
shared_networks_list: shared_network
| shared_networks_list COMMA shared_network
;
......
......@@ -952,11 +952,17 @@ shared_networks: SHARED_NETWORKS {
ctx.stack_.back()->set("shared-networks", l);
ctx.stack_.push_back(l);
ctx.enter(ctx.SHARED_NETWORK);
} COLON LSQUARE_BRACKET shared_networks_list RSQUARE_BRACKET {
} COLON LSQUARE_BRACKET shared_networks_content RSQUARE_BRACKET {
ctx.stack_.pop_back();
ctx.leave();
};
// This allows 0 or more shared network definitions.
shared_networks_content: %empty
| shared_networks_list
;
// This allows 1 or more shared network definitions.
shared_networks_list: shared_network
| shared_networks_list COMMA shared_network
;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment