# YAML Test Matrix

--- &test-8CWC
  Title: Plain mapping key ending with colon
  Tags: [ mapping, scalar ]

YAML

---
key ends with two colons::: value

Expected Events

+STR
+DOC ---
+MAP
=VAL :key ends with two colons::
=VAL :value
-MAP
-DOC
-STR

Expected JSON

{
"key ends with two colons::": "value"
}

c-libfyaml-event

 ok

c-libyaml-event

 ok

cpp-rapidyaml-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

perl-refparser-event

 ok

py-pyyaml-event

 ok

py-ruamel-event

 ok

rust-yamlrust-event

 ok

c-libfyaml-json

 json_ok

dotnet-yamldotnet-json

 json_ok

go-yaml-json

 json_ok

hs-hsyaml-json

 json_ok

js-jsyaml-json

 json_ok

js-yaml-json

 json_ok

lua-lyaml-json

 json_ok

perl-pp-json

 json_ok

perl-pplibyaml-json

 json_ok

perl-syck-json

 json_ok

perl-tiny-json

 json_ok

perl-xs-json

 json_ok

perl-yaml-json

 json_ok

py-pyyaml-json

 json_ok

py-ruamel-json

 json_ok

ruby-psych-json

 json_ok

hs-reference-yeast

 na
Line  Col Char Byte Token|Content
   1    0    0    0 +DOC |
   1    0    0    0 =HEAD|---
   1    3    3    3 +NODE|
   1    3    3    3 =EOL |\x0a
   2    0    4    4 +MAP |
   2    0    4    4 +PAIR|
   2    0    4    4 +NODE|
   2    0    4    4 +VAL |
   2    0    4    4 =TEXT|key.ends.with.two.colons::
   2   26   30   30 -VAL |
   2   26   30   30 -NODE|
   2   26   30   30 =SYNX|:
   2   27   31   31 =WSPC|.
   2   28   32   32 +NODE|
   2   28   32   32 +VAL |
   2   28   32   32 =TEXT|value
   2   33   37   37 -VAL |
   2   33   37   37 -NODE|
   2   33   37   37 =EOL |\x0a
   3    0   38   38 -PAIR|
   3    0   38   38 -MAP |
   3    0   38   38 -NODE|
   3    0   38   38 -DOC |

perl-pp-perl

 na
{
  'key ends with two colons::' => 'value'
}

perl-pplibyaml-perl

 na
{
  'key ends with two colons::' => 'value'
}

perl-syck-perl

 na
{
  'key ends with two colons::' => 'value'
}

perl-tiny-perl

 na
{
  'key ends with two colons::' => 'value'
}

perl-xs-perl

 na
{
  'key ends with two colons::' => 'value'
}

perl-yaml-perl

 na
{
  'key ends with two colons::' => 'value'
}

py-pyyaml-py

 na
{'key ends with two colons::': 'value'}

py-ruamel-py

 na
{'key ends with two colons::': 'value'}