Skip to content
  • Duncan Coutts's avatar
    New parse utils to help with subsections · 306210bc
    Duncan Coutts authored and Mikhail Glushenkov's avatar Mikhail Glushenkov committed
    The existing approach has been to parse top level fields and then
    separately parse each top level section, and similarly for pretty
    printing. A better approach is to follow the pattern for fields and have
    a section description. Then we just parse or print fields+sections in
    one call. And as a bonus, secitons can have subsections (and could even
    do so recursively).
    
    This patch just adds the new functionality. No existing config parsing
    is switched over.
    
    (cherry picked from commit 2f743b6d)
    306210bc