Skip to content
  • Zygmunt Krynicki's avatar
    picfg: allow preserving and restoring comments · e891d639
    Zygmunt Krynicki authored and Zygmunt Krynicki's avatar Zygmunt Krynicki committed
    The decoder gains Decoder.PreserveComments which keeps track of
    white-space and comments as input is decoded. Comments are associated
    with each parameter, section and with the entire file.
    
    Comments always precede the entity they refer to. Comments for sections
    and parameters are associated naturally. Comments associate with files
    devoid of normally parsed content.
    
    The Encoder encodes comments for all the objects unconditionally.
    
    Closes: #2
    
    
    Signed-off-by: default avatarZygmunt Krynicki <zygmunt.krynicki@huawei.com>
    e891d639