Skip to content

Add support for option annotation/comments #92

@troglobit

Description

@troglobit

It would be neat if we could add option annotation support to libConfuse:

/* Some comment to an option */
option = value

/* Section comment, here be dragons */
section {
    key = val
    /* Another comment, why we set to true */
    bool = true
}

So that if we call cfg_print() on the above parsed cfg_t, we would get the same output.

The following variant should also be possible:

option = value              /* Some comment to an option */

but with the following the last comment would be set

/* Some comment to an option */
option = value              /* Actual comment set to to option */

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions