better ini examples
This commit is contained in:
@@ -18,8 +18,10 @@ When compiled for a bare metal Cortex-M0, **the whole parser fits in 336 bytes**
|
|||||||
|
|
||||||
Any whitespace, except inside a value, is discarded.
|
Any whitespace, except inside a value, is discarded.
|
||||||
|
|
||||||
- **Sections** - `[section.name]`
|
- **Sections** - `[section]`
|
||||||
- **Key-value pairs** - `key.foo-bar_baz123 = value lorem ipsum 123`
|
- Supports any characters except whitespace and `]`
|
||||||
|
- **Key-value pairs** - `key = value`
|
||||||
|
- Key supports any characters except whitespace and `=`
|
||||||
- Value can contain whitespace, leading and trailing whitespace is removed.
|
- Value can contain whitespace, leading and trailing whitespace is removed.
|
||||||
- Ends with either `\r` or `\n`
|
- Ends with either `\r` or `\n`
|
||||||
- **Comment** `# comment ...`
|
- **Comment** `# comment ...`
|
||||||
|
|||||||
Reference in New Issue
Block a user