blob: 9c372da32fd85c1741d5b1f852039234403dbf00 (
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
|
%YAML 1.1
---
- name: spec-07-12a
yaml: |
# Implicit document. Root
# collection (mapping) node.
foo : bar
tree: |
+STR
+DOC
+MAP
=VAL :foo
=VAL :bar
-MAP
-DOC
-STR
- name: spec-07-12a-canonical
yaml: |
%YAML 1.1
---
!!map {
? !!str "foo"
: !!str "bar"
}
tree: |
+STR
+DOC ---
+MAP {} <tag:yaml.org,2002:map>
=VAL <tag:yaml.org,2002:str> "foo
=VAL <tag:yaml.org,2002:str> "bar
-MAP
-DOC
-STR
- name: spec-07-12b
yaml: |
# Explicit document. Root
# scalar (literal) node.
--- |
Text content
tree: |
+STR
+DOC ---
=VAL |Text content\n
-DOC
-STR
- name: spec-07-12b-canonical
yaml: |
%YAML 1.1
---
!!str "Text content\n"
tree: |
+STR
+DOC ---
=VAL <tag:yaml.org,2002:str> "Text content\n
-DOC
-STR
|