diff options
| author | Federico Angelilli <code@fedang.net> | 2024-05-22 00:37:58 +0200 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-05-22 00:37:58 +0200 |
| commit | f83f21f98069c3267725c640f090feb6a2628894 (patch) | |
| tree | 6a7a8cc6d8e67f1fcbf677de764c80de9c0d2180 /test | |
| parent | 2881783a6d7bc37e03c8639caf8ac0b0876a01c6 (diff) | |
Add multiline ini parsing
Diffstat (limited to 'test')
| -rw-r--r-- | test/ini.c | 5 | ||||
| -rw-r--r-- | test/test.ini | 6 |
2 files changed, 7 insertions, 4 deletions
@@ -20,7 +20,10 @@ void test_ini() /*13*/ "try = catch 123 bool\n" /*14*/ " k e y = value pair! ; comment\n" /*15*/ " su;s = [x] \n" - /*16*/ " sus \n"; + /*16*/ " sus \n" + /*17*/ "test = multi \\\n" + /*18*/ " line \\\n" + /*19*/ " works ; boh \n"; any_ini_t ini; any_ini_init(&ini, src, strlen(src)); diff --git a/test/test.ini b/test/test.ini index e575371..6d5f939 100644 --- a/test/test.ini +++ b/test/test.ini @@ -20,7 +20,7 @@ sus ; sus 123 = 456 ; comment - ; another + ; another crazy = stuff ; here crumped=stuff;nocomment @@ -30,11 +30,11 @@ crumped=stuff;nocomment [another] - ciao = s + ciao = s ]err = sus[ - [empty] + [empty] ; yes ; |
