OCaml codecs for Python INI file handling compatible with ConfigParser
1# This is a comment
2; This is also a comment
3
4[section]
5# Comment before option
6key1 = value1
7key2 = value2 ; inline comment
8key3 = value3 # another inline comment
9
10; Comment between options
11
12key4 = value4
13
14[Commented Bar]
15baz=qwe ; a comment
16foo: bar # not a comment!
17# but this is a comment
18; another comment
19quirk: this;is not a comment
20; a space must precede an inline comment