relpipe-data/examples/ini-complex.ini
author František Kučera <franta-hg@frantovo.cz>
Mon, 21 Feb 2022 00:43:11 +0100
branchv_0
changeset 329 5bc2bb8b7946
permissions -rw-r--r--
Release v0.18

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