diff options
author | Daniil Baturin <daniil@baturin.org> | 2017-01-12 20:23:52 +0700 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2017-01-12 20:23:52 +0700 |
commit | 26fc59887e8c596dad4e67d350b26c5e908be259 (patch) | |
tree | 83fb63fb0de514a0772a90cfbdac27c125cfd3fd /src/curly_lexer.mll | |
parent | f947b3e8e7b9db2fcab250ce6d8050b650130cec (diff) | |
download | vyconf-26fc59887e8c596dad4e67d350b26c5e908be259.tar.gz vyconf-26fc59887e8c596dad4e67d350b26c5e908be259.zip |
T245: improve handling of nodes with duplicate names.
Two tag nodes with the same name ("ethernet eth0 {...} ethernet eth0 {...}")
is an error.
Two leaf nodes with the same name, however, are not an error. Values of the
next nodes are merged into the first one, while all other data (comment and
inactive and ephemeral properties are inherited from the first node.
This mimics the old syntax of multi nodes, so a person who uses the old syntax
out of habit in a handwritten config will get the result they expect.
Diffstat (limited to 'src/curly_lexer.mll')
0 files changed, 0 insertions, 0 deletions