szaghi / FiNeR

Fortran INI ParseR and generator
38 stars 5 forks source link

Try to support options before first section #7

Open szaghi opened 9 years ago

szaghi commented 9 years ago

It is often allowed, in many config format, to insert options before the first defined section, e.g.

foo = bar
bar = foo

[first-section]
baz = first

Presently, the two options foo and bar defined before the first-section are omitted. Consider to try to parse them.

szaghi commented 9 years ago

Some parsers put these orphans options into a default section intended to have a global meaning... it can be the right way.