Browse Source

better ini examples

Ondřej Hruška 1 year ago
parent
commit
a038484869
Signed by: Ondřej Hruška <ondra@ondrovo.com> GPG key ID: 2C5FD5035250423D
1 changed files with 4 additions and 2 deletions
  1. 4 2
      README.md

+ 4 - 2
README.md View File

@@ -18,8 +18,10 @@ When compiled for a bare metal Cortex-M0, **the whole parser fits in 336 bytes**
18 18
 
19 19
 Any whitespace, except inside a value, is discarded.
20 20
 
21
-- **Sections** - `[section.name]`
22
-- **Key-value pairs** - `key.foo-bar_baz123 = value lorem ipsum 123`
21
+- **Sections** - `[section]`
22
+  - Supports any characters except whitespace and `]`
23
+- **Key-value pairs** - `key = value`
24
+  - Key supports any characters except whitespace and `=`
23 25
   - Value can contain whitespace, leading and trailing whitespace is removed.
24 26
   - Ends with either `\r` or `\n`
25 27
 - **Comment** `# comment ...`