UNPKG

1.31 kBPlain TextView Raw
1o = p
2
3 a with spaces = b c
4
5; wrap in quotes to JSON-decode and preserve spaces
6" xa n p " = "\"\r\nyoyoyo\r\r\n"
7
8; wrap in quotes to get a key with a bracket, not a section.
9"[disturbing]" = hey you never know
10
11; Test single quotes
12s = 'something'
13
14; Test mixing quotes
15
16s1 = "something'
17
18; Test double quotes
19s2 = "something else"
20
21; Test arrays
22zr[] = deedee
23ar[] = one
24ar[] = three
25; This should be included in the array
26ar = this is included
27
28; Test resetting of a value (and not turn it into an array)
29br = cold
30br = warm
31
32; a section
33[a]
34av = a val
35e = { o: p, a: { av: a val, b: { c: { e: "this [value]" } } } }
36j = "{ o: "p", a: { av: "a val", b: { c: { e: "this [value]" } } } }"
37"[]" = a square?
38
39; Nested array
40cr[] = four
41cr[] = eight
42
43; nested child without middle parent
44; should create otherwise-empty a.b
45[a.b.c]
46e = 1
47j = 2
48
49; dots in the section name should be literally interpreted
50[x\.y\.z]
51x.y.z = xyz
52
53[x\.y\.z.a\.b\.c]
54a.b.c = abc
55
56; this next one is not a comment! it's escaped!
57nocomment = this\; this is not a comment
58
59# Support the use of the number sign (#) as an alternative to the semicolon for indicating comments.
60# http://en.wikipedia.org/wiki/INI_file#Comments
61
62# this next one is not a comment! it's escaped!
63noHashComment = this\# this is not a comment
64
\No newline at end of file