# 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"
}

cpp-event

 ok

hs-yaml-event

 ok

js-event

 ok

nimyaml-event

 ok

perl5-pp-event

 ok

ruamel-event

 ok

hs-yaml-json

 json_ok

js-json

 json_ok

js-yaml-json

 json_ok

perl5-pp-json

 json_ok

ruamel-json

 json_ok

java-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

libyaml-event

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

perl5-pegex-event

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

pyyaml-event

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

java-json

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

luajit-json

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

perl5-pm-json

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

perl5-syck-json

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

perl5-xs-json

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

pyyaml-json

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

ruby-json

 json_diff
{
  "key": "chor value"
}

perl5-tiny-json

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

perl5-tiny-pl

 error
YAML::Tiny does not support a feature in line '&an:chor value' at /bin/perl5-tiny-pl line 15.

perl5-pm-pl

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

perl5-pp-pl

 na
{
  'key' => 'value'
}

perl5-syck-pl

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

perl5-xs-pl

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

pyyaml-py

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

ruamel-py

 na
{'key': 'value'}