I just use a parser class and read tokens based on a list of known keywords. With syntax like this, unknowns should get ignored anyway, otherwise it kind of defeats the point of the tag-value syntax.
https://github.com/slatenails/ldforge/bl...config.cpp
https://github.com/slatenails/ldforge/bl...config.cpp