# YAML Test Matrix

--- &test-Y2GN
  Title: Anchor with colon in the middle
  Tags: [ anchor ]

YAML

---
key: &an:chor value

Expected Events

+STR
+DOC ---
+MAP
=VAL :key
=VAL &an:chor :value
-MAP
-DOC
-STR

Expected JSON

{
"key": "value"
}

c-libfyaml-event

 ok

cpp-yamlcpp-event

 ok

dotnet-yamldotnet-event

 ok

hs-hsyaml-event

 ok

js-yaml-event

 ok

nim-nimyaml-event

 ok

perl-pp-event

 ok

py-ruamel-event

 ok

c-libfyaml-json

 json_ok

dotnet-yamldotnet-json

 json_ok

hs-hsyaml-json

 json_ok

js-jsyaml-json

 json_ok

js-yaml-json

 json_ok

perl-pp-json

 json_ok

py-ruamel-json

 json_ok

c-libyaml-event

 diff
Got Events:
+STR
+DOC ---
+MAP
=VAL :key
=VAL &an ::chor value
-MAP
-DOC
-STR

java-snakeyaml-event

 diff
Transformed Events:
+STR
+DOC ---
+MAP
=VAL :key
=VAL &an ::chor value
-MAP
-DOC
-STR
Got Events:
+STR
+DOC ---
+MAP
=VAL :key
=VAL &an ::chor value
-MAP
-DOC
-STR

perl-pplibyaml-event

 diff
Got Events:
+STR
+DOC ---
+MAP
=VAL :key
=VAL &an ::chor value
-MAP
-DOC
-STR

py-pyyaml-event

 diff
Got Events:
+STR
+DOC ---
+MAP
=VAL :key
=VAL &an ::chor value
-MAP
-DOC
-STR

java-snakeyaml-json

 json_diff
{
  "key": ":chor value"
}

lua-lyaml-json

 json_diff
{
  "key": ":chor value"
}

perl-pplibyaml-json

 json_diff
{
  "key": ":chor value"
}

perl-syck-json

 json_diff
{
  "key": ":chor value"
}

perl-xs-json

 json_diff
{
  "key": ":chor value"
}

perl-yaml-json

 json_diff
{
  "key": ":chor value"
}

py-pyyaml-json

 json_diff
{
  "key": ":chor value"
}

ruby-psych-json

 json_diff
{
  "key": "chor value"
}

perl-pp-perl

 na
{
  'key' => 'value'
}

perl-pplibyaml-perl

 na
{
  'key' => ':chor value'
}

perl-syck-perl

 na
{
  'key' => ':chor value'
}

perl-xs-perl

 na
{
  'key' => ':chor value'
}

perl-yaml-perl

 na
{
  'key' => ':chor value'
}

py-pyyaml-py

 na
{'key': ':chor value'}

py-ruamel-py

 na
{'key': 'value'}

perl-tiny-json

 ni
YAML::Tiny does not support a feature in line '&an:chor value' at /yaml/bin/perl-tiny-json line 12.

perl-tiny-perl

 ni
YAML::Tiny does not support a feature in line '&an:chor value' at /yaml/bin/perl-tiny-perl line 15.