-
Notifications
You must be signed in to change notification settings - Fork 3
/
test.cfg
49 lines (44 loc) · 1.08 KB
/
test.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Global stuff
global = "global value";
# Primary stuff
primary {
string = "primary string value";
string_with_quote = "some \"quoted\" str\\ing";
single = 'hello world';
empty = '';
single_with_quote = '\'hello\' "world"';
# Semicolons are optional
integer500 = 500
float = 80.80
negative = -50
boolean = true
not_true = FALSE
nothing = NULL
list = [
TRUE,
FALSE,
50.5,
"hello",
'list',
]
# Reference secondary._under (which hasn't been defined yet)
sec_ref = secondary._under;
# Primary-sub stuff
sub {
key = "primary sub key value";
include "./test_include.cfg";
}
sub_section {
# Testing of a special case that had previous caused failures
# Was caused by an array with no ending semicolon, followed directly by another setting
nested_array_no_semi_colon = ["a", "b"]
another = true
}
}
secondary {
another = "secondary another value";
global_reference = global;
primary_sub_key = primary.sub.key;
another_again = .another; # References secondary.another
_under = 50;
}