diff -r cc60c8dd7924 -r 5bc2bb8b7946 relpipe-data/examples/ini-complex.full.tabular --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/relpipe-data/examples/ini-complex.full.tabular Mon Feb 21 00:43:11 2022 +0100 @@ -0,0 +1,55 @@ +ini: + ╭────────────────┬─────────────────┬──────────────────┬─────────────────────┬──────────────────┬──────────────────────────────────────────────────────────┬─────────────────────────────────────────────────────────────────────────────────┬─────────────────────╮ + │ line (integer) │ event (integer) │ section (string) │ key (string) │ sub_key (string) │ value (string) │ comment (string) │ whitespace (string) │ + ├────────────────┼─────────────────┼──────────────────┼─────────────────────┼──────────────────┼──────────────────────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────┼─────────────────────┤ + │ 1 │ 1 │ │ global │ │ value │ │ │ + │ 2 │ 2 │ │ │ │ │ │ ↲ │ + │ 4 │ 4 │ section │ │ │ │ section tags are currently supported by the parser (do not generate error) │ │ + │ 5 │ 5 │ section │ │ │ │ but do not generate any output │ │ + │ 6 │ 6 │ section │ section-tag-support │ │ partial │ │ │ + │ 7 │ 7 │ section │ │ │ │ │ ↲ │ + │ 9 │ 9 │ quoting │ │ │ │ │ ↲ │ + │ 10 │ 10 │ quoting │ quoted │ │ some text in quotes │ │ │ + │ 11 │ 11 │ quoting │ apostrophed │ │ some text in apostrophes │ │ │ + │ 12 │ 12 │ quoting │ │ │ │ │ ↲ │ + │ 13 │ 13 │ quoting │ unquoted │ │ values are trimmed │ │ │ + │ 14 │ 14 │ quoting │ we-need │ │ quotes or apostrophes │ │ │ + │ 15 │ 15 │ quoting │ to-keep │ │ the leading/trailing whitespace │ │ │ + │ 16 │ 16 │ quoting │ │ │ │ │ ↲ │ + │ 18 │ 18 │ multiline │ │ │ │ │ ↲ │ + │ 19 │ 19 │ multiline │ quoted │ │ first line↲second line │ │ │ + │ 21 │ 20 │ multiline │ │ │ │ │ ↲ │ + │ 22 │ 21 │ multiline │ apostrophed │ │ first line↲second line │ │ │ + │ 24 │ 22 │ multiline │ │ │ │ │ ↲ │ + │ 25 │ 23 │ multiline │ │ │ │ unlike quoted/apostrophed strings, there is no line end inside the value: │ │ + │ 26 │ 24 │ multiline │ backslashed │ │ first line continues here │ │ │ + │ 28 │ 25 │ multiline │ │ │ │ │ ↲ │ + │ 29 │ 26 │ comments │ │ │ │ we can comment also secions │ │ + │ 30 │ 27 │ comments │ │ │ │ │ ↲ │ + │ 31 │ 28 │ comments │ ini │ │ true │ and even values │ │ + │ 32 │ 29 │ comments │ unix │ │ true │ │ │ + │ 33 │ 30 │ comments │ │ │ │ │ ↲ │ + │ 34 │ 31 │ comments │ │ │ │ classic INI comment │ │ + │ 35 │ 32 │ comments │ │ │ │ unix-style comments are also supported │ │ + │ 36 │ 33 │ comments │ │ │ │ │ ↲ │ + │ 37 │ 34 │ comments │ but │ │ be aware that ; this is part of the value, not a comment │ │ │ + │ 38 │ 35 │ comments │ │ │ │ we need '' or "" to put comment on the same line as the value │ │ + │ 39 │ 36 │ comments │ │ │ │ │ ↲ │ + │ 41 │ 38 │ subkeys │ │ │ │ │ ↲ │ + │ 42 │ 39 │ subkeys │ │ │ │ we may specify subkeys in [] brackets: │ │ + │ 43 │ 40 │ subkeys │ a │ x │ AX │ │ │ + │ 44 │ 41 │ subkeys │ a │ y │ AY │ │ │ + │ 45 │ 42 │ subkeys │ │ │ │ │ ↲ │ + │ 46 │ 43 │ subkeys │ │ │ │ because this feature is quite uncommon, it is disabled by default │ │ + │ 47 │ 44 │ subkeys │ │ │ │ and whole key+subkey becomes a key │ │ + │ 48 │ 45 │ subkeys │ │ │ │ but we can turn on the subkey support by the CLI option: --enable-sub-keys true │ │ + │ 49 │ 46 │ subkeys │ │ │ │ and get separete key and sub_key attributes on the output │ │ + │ 50 │ 47 │ subkeys │ │ │ │ │ ↲ │ + │ 52 │ 49 │ escaping │ │ │ │ │ ↲ │ + │ 53 │ 50 │ escaping │ escaped-multiline │ │ first line↲second line │ │ │ + │ 54 │ 51 │ escaping │ backslash │ │ back\slash │ │ │ + │ 55 │ 52 │ escaping │ quotes │ │ quoted text with "quotes" inside │ │ │ + │ 56 │ 53 │ escaping │ tab │ │ how↹very │ │ │ + │ 57 │ 54 │ escaping │ │ │ │ │ ↲↲ │ + ╰────────────────┴─────────────────┴──────────────────┴─────────────────────┴──────────────────┴──────────────────────────────────────────────────────────┴─────────────────────────────────────────────────────────────────────────────────┴─────────────────────╯ +Record count: 49