saphyr-serde/parser/tests/yaml-test-suite/src/4MUZ.yaml

57 lines
668 B
YAML
Raw Normal View History

---
- name: Flow mapping colon on line after key
from: '@ingydotnet'
tags: flow mapping
yaml: |
{"foo"
: "bar"}
tree: |
+STR
+DOC
+MAP {}
=VAL "foo
=VAL "bar
-MAP
-DOC
-STR
json: |
{
"foo": "bar"
}
emit: |
"foo": "bar"
- yaml: |
{"foo"
: bar}
tree: |
+STR
+DOC
+MAP {}
=VAL "foo
=VAL :bar
-MAP
-DOC
-STR
emit: |
"foo": bar
- yaml: |
{foo
: bar}
tree: |
+STR
+DOC
+MAP {}
=VAL :foo
=VAL :bar
-MAP
-DOC
-STR
json: |
{
"foo": "bar"
}
emit: |
foo: bar