diff options
author | Daniil Baturin <daniil@baturin.org> | 2018-05-23 16:57:20 +0700 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2018-05-23 17:03:25 +0700 |
commit | f0ed6868a5896dfde3d6519c1068f5e5dfea0417 (patch) | |
tree | d00ce9af65467b20d7e74f03c8806b1dd6985fb7 /LICENSE | |
parent | c754178f2fe2e741105c5ce34029b32aad033f91 (diff) | |
download | vyconf-f0ed6868a5896dfde3d6519c1068f5e5dfea0417.tar.gz vyconf-f0ed6868a5896dfde3d6519c1068f5e5dfea0417.zip |
Render valueless nodes correctly.
The canonical format for valueless nodes is "foo;".
There are two cases: when it's known from the reference tree that
a node is valueless, we should render it the canonical way.
However, a valueless node is not the same as a normal node with no children,
semantically, so nodes that are note valueless should be rendered as "foo {}".
If the reference tree is not present, resort to rendering all nodes
without values as if they were normal nodes with no children
rather than as if they were valueless.
The parser is unaware of the distinction, so there are no implications for it.
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions