blob: 6d1decd69f51cd070c10bd78d3148d0074676098 (
plain)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
%YAML 1.1
---
- name: spec-07-10
yaml: |
"Root flow
scalar"
--- !!str >
Root block
scalar
---
# Root collection:
foo : bar
... # Is optional.
---
# Explicit document may be empty.
tree: |
+STR
+DOC
=VAL "Root flow scalar
-DOC
+DOC ---
=VAL <tag:yaml.org,2002:str> >Root block scalar\n
-DOC
+DOC ---
+MAP
=VAL :foo
=VAL :bar
-MAP
-DOC ...
+DOC ---
=VAL :
-DOC
-STR
- name: spec-07-10-canonical
yaml: |
%YAML 1.1
---
!!str "Root flow scalar"
---
!!str "Root block scalar\n"
---
!!map {
? !!str "foo"
: !!str "bar"
}
---
#!!str ""
!!null ""
tree: |
+STR
+DOC ---
=VAL <tag:yaml.org,2002:str> "Root flow scalar
-DOC
+DOC ---
=VAL <tag:yaml.org,2002:str> "Root block scalar\n
-DOC
+DOC ---
+MAP {} <tag:yaml.org,2002:map>
=VAL <tag:yaml.org,2002:str> "foo
=VAL <tag:yaml.org,2002:str> "bar
-MAP
-DOC
+DOC ---
=VAL <tag:yaml.org,2002:null> "
-DOC
-STR
|