FiNeR icon indicating copy to clipboard operation
FiNeR copied to clipboard

Try to support options before first section

Open szaghi opened this issue 9 years ago • 1 comments

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 avatar Apr 01 '15 09:04 szaghi

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

szaghi avatar Apr 01 '15 14:04 szaghi