Repository navigation
Commit 67d3e86
Assigning an AoT over a dotted key (e.g. `doc["a"] = aot(...)` where `a`
came from `a.b = ...`) left the new `[[a]]` header in the dotted key's
inline slot, so a following dotted sibling such as `c.d = 2` was rendered
inside the array of tables and captured on round-trip.
`_replace_at`'s `dotted_to_header` guard only recognised non-super Tables,
not AoTs, so the reposition-before-inline-siblings path that already fixes
the table case (#513/#524) never ran for arrays of tables. Extend the guard
to AoT. Adds a regression test mirroring the table case and a changelog entry.
Co-authored-by: Zain Dana Harper <zain@aurora-framework.dev>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Co-authored-by: Frost Ming <me@frostming.com>
1 parent e23a254 commit 67d3e86
3 files changed
Lines changed: 30 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1170 | 1170 | | |
1171 | 1171 | | |
1172 | 1172 | | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
1173 | 1195 | | |
1174 | 1196 | | |
1175 | 1197 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
860 | 860 | | |
861 | 861 | | |
862 | 862 | | |
863 | | - | |
864 | | - | |
865 | | - | |
866 | | - | |
867 | | - | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
868 | 870 | | |
869 | 871 | | |
870 | 872 | | |
| |||
0 commit comments