arcnmx / serde-ini

Windows INI file {de,}serialization
MIT License
19 stars 17 forks source link

Support colon as name/value delimiter #18

Open alexkirsz opened 3 years ago

alexkirsz commented 3 years ago

Python's configparser supports colons as name/value delimiter.

On another note, it also supports keys without values, but I'm not sure how you'd represent that with serde.

Example from the doc:

[All Values Are Strings]
values like this: 1000000
or this: 3.14159265359
are they treated as numbers? : no
integers, floats and booleans are held as: strings
can use the API to get converted values directly: true

[Multiline Values]
chorus: I'm a lumberjack, and I'm okay
    I sleep all night and I work all day

[No Values]
key_without_value
empty string value here =
laura-projects commented 10 months ago

PR #23 implements colon as value delimiter