This commit is contained in:
hellerve committed 2020-03-20 18:38:23 +01:00
1 parent 5f74de71c3
commit 32bf0c1272
1 file changed
+4 -2
+4 -2
View File
@@ -13,7 +13,8 @@ You’re not alone: I also wish the code were documented.
`cfg` has no comments, but let’s pretend we had `#` comments.
```
# lists start with a name, then an indent, and then a value
# lists start with a name, then an indent, then a hyphen,
# and then a value
my_list
-"value"
-12
@@ -30,7 +31,8 @@ my_section
my_second_numer 23.0
```
Keys cannot contain spaces. This is all.
Keys cannot contain spaces. Indents are always two spaces. There is no space
between the hyphen and the value and an array. This is all.
It is a simple format, some might think it is too simple. It is, however,
possible, to write a simple, fast implementation in a few hundred lines of C