Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (29 sloc) 506 Bytes
=== Anchors With Colon in Name
--- from: Mailing List Discussion
--- tags: alias edge 1.3-err
This test is showing that a colon in an anchor (allowed in 1.2) can look like a
mapping separator. In 1.3 we we propose to not allow `:` or other punctation in
anchors. See [[rfc 3]].
--- in-yaml
&a: key: &a value
foo:
*a:
--- in-json
{
"key": "value",
"foo": "key"
}
--- out-yaml
&a: key: &a value
foo: *a:
--- test-event
+STR
+DOC
+MAP
=VAL &a: :key
=VAL &a :value
=VAL :foo
=ALI *a:
-MAP
-DOC
-STR
You can’t perform that action at this time.