relpipe-data/examples/ini-complex.ini
branchv_0
changeset 329 5bc2bb8b7946
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/relpipe-data/examples/ini-complex.ini	Mon Feb 21 00:43:11 2022 +0100
@@ -0,0 +1,58 @@
+global=value
+
+[section][section-tag]
+; section tags are currently supported by the parser (do not generate error)
+; but do not generate any output
+section-tag-support=partial
+
+[quoting]
+
+quoted = "some text in quotes"
+apostrophed = 'some text in apostrophes'
+
+unquoted =     values are trimmed    
+we-need = "    quotes or apostrophes"
+to-keep = 'the leading/trailing whitespace    '
+
+[multiline]
+
+quoted = "first line
+second line"
+
+apostrophed = 'first line
+second line'
+
+; unlike quoted/apostrophed strings, there is no line end inside the value:
+backslashed = first line \
+continues here
+
+[comments] ; we can comment also secions
+
+ini = "true" ; and even values
+unix = true
+
+; classic INI comment
+# unix-style comments are also supported
+
+but = be aware that ; this is part of the value, not a comment
+; we need '' or "" to put comment on the same line as the value
+
+[subkeys]
+
+; we may specify subkeys in [] brackets:
+a[x] = AX
+a[y] = AY
+
+; because this feature is quite uncommon, it is disabled by default
+; and whole key+subkey becomes a key
+; but we can turn on the subkey support by the CLI option: --enable-sub-keys true
+; and get separete key and sub_key attributes on the output
+
+[escaping]
+
+escaped-multiline = first line\nsecond line
+backslash = back\\slash
+quotes = "quoted text with \"quotes\" inside"
+tab = how\tvery
+
+