A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/libconfuse/libconfuse/issues/92 below:

Add support for option annotation/comments · Issue #92 · libconfuse/libconfuse · GitHub

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 */

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4