Skip to main content

Module yaml

Module yaml 

Source
Expand description

YAML format backend. Reads via the noyalib Value view; mutates via the lossless cst::Document editor so comments, ordering, styles, and untouched source bytes are preserved.

Functions§

append_array_item_preserving
Append an item to an existing block YAML sequence using the CST’s indentation-aware editor.
load
remove_array_item_preserving
Remove one item from a YAML sequence by numeric index.
save
set_preserving
Replace one scalar in a YAML source document while retaining all unrelated source bytes. Escaped keys, keyed-list routes, and collection replacement are deliberately rejected until they have a lossless CST path adapter.
unset_preserving
Remove an existing YAML entry through the lossless CST editor.