-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.kdl
42 lines (37 loc) · 1.04 KB
/
test.kdl
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
firstkey "first
tab\nnewline\"
val" r###"testing""###
numbers 543 234 85720394
thirdkey true null /*
bla bla black sheep
*/
secondkey 12/**/ "test" null false "testagain"
anotherkey "true" 123.543 null true
moreKeys false true
/**/
/*
moar sheeps
*/keyonly
testcomment /-"comment ull"
objects { node1 12; node2 "string"; node3 null; }
multiline-node \
"random"
// Nodes can be separated into multiple lines
title \
"Some title"
"quoted node" "quoted value"
"quoted node for numbers" 21 43 465 "string"
// Files must be utf8 encoded!
smile "😁" // more text here commented out
// Instead of anonymous nodes, nodes and properties can be wrapped
// in "" for arbitrary node names.
"!@#$@$%Q#$%~@!40" "1.2.3" "!!!!!"=true
// The following is a legal bare identifier:
foo123~!@#$%^&*.:'|/?+ "weeee"
// And you can also use unicode!
ノード お名前="☜(゚ヮ゚☜)"
// kdl specifically allows properties and values to be
// interspersed with each other, much like CLI commands.
foo bar=true "baz" quux=false 1 2 3
/-comment key "value"
test "value"