Repository navigation
Commit 4ff9bc2
committed
fix: avoid duplicate table header when adding a key to an out-of-order table
Adding a plain key to an out-of-order table whose concrete `[x]` part is
declared after its sub-tables (the "defining a super-table afterward is ok"
spec form) wrote the value into the header-less super part, forcing it to
render a second `[x]` header next to the existing concrete one. The dumped
output then had a duplicate header and no longer parsed.
Route the value into the existing concrete (non-super) part instead, so the
header that already exists gains the key and no second header is emitted.1 parent 43668dd commit 4ff9bc2
2 files changed
Lines changed: 26 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
646 | 660 | | |
647 | 661 | | |
648 | 662 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1168 | 1168 | | |
1169 | 1169 | | |
1170 | 1170 | | |
1171 | | - | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
1172 | 1183 | | |
1173 | 1184 | | |
1174 | 1185 | | |
| |||
0 commit comments