Skip to content

Instantly share code, notes, and snippets.

@perlpunk
Last active November 8, 2018 09:56
Show Gist options
  • Save perlpunk/de2c631a7b0e9002de351a680eadb573 to your computer and use it in GitHub Desktop.
Save perlpunk/de2c631a7b0e9002de351a680eadb573 to your computer and use it in GitHub Desktop.

Showing various YAML input examples with colons in plain values in flow collections

Added results for libyaml with yaml/libyaml#104 applied

  1. https://gist.github.com/perlpunk/79d793564bf3443213eb734a1e8044b6 - [ http://foo ]
  • Error: libyaml, pyyaml-3.12
  • - ["http://foo"]: cpp, hsyaml, snakeyaml, nimyaml, pyyaml, ruamel, libyaml-PR104
  1. https://gist.github.com/perlpunk/74c8fd873278102b68632125ff1fd034 - [ foo::: bar ]
  • Error: libyaml, pyyaml-3.12
  • - { "foo::": bar }: cpp, hsyaml, snakeyaml, nimyaml, pyyaml, ruamel, libyaml-PR104
  1. https://gist.github.com/perlpunk/2d7853e56703affb30b9276a1536298e - [:foo]
  • Error: snakeyaml, libyaml, pyyaml, pyyaml-3.12, libyaml-PR104
  • - [ ":foo" ]: cpp, hsyaml, nimyaml, ruamel
  1. https://gist.github.com/perlpunk/1067b8cb01f0c6eb17fb77637b6dba65 - [foo:]
  • Error: cpp (timeout!), libyaml, nimyaml, libyaml-PR104

  • - [ "foo:" ]: hsyaml, ruamel

  • - [ { foo: null } ]: snakeyaml, pyyaml, pyyaml-3.12

  1. https://gist.github.com/perlpunk/5797a4e325db183baaaaa67f32038626 - { omitted value:, }
  • Error: libyaml, libyaml-PR104
  • - { "omitted value" : }: cpp, snakeyaml, nimyaml, pyyaml, pyyaml-3.12
  • - { "omitted value:" : }: hsyaml, ruamel
  1. https://gist.github.com/perlpunk/50133bdfb897b64b5f9e42167d5ce506 - {a:b}
  • Error: libyaml, pyyaml-3.12
  • - { "a:b": }: cpp, hsyaml, snakeyaml, nimyaml, pyyaml, ruamel, libyaml-PR104
  1. https://gist.github.com/perlpunk/65afbd3c7d37b68837accf66e76af552 - {a:}
  • Error: libyaml, libyaml-PR104
  • - { "a": }: cpp, snakeyaml, nimyaml, pyyaml, pyyaml-3.12
  • - { "a:" : }: ruamel, hsyaml
  1. https://gist.github.com/perlpunk/fbb06966799cba012582991a07351e5b - {url: http://foo}
  • Error: libyaml, pyyaml-3.12
  • - { url: "http://foo" }: cpp, hsyaml, snakeyaml, nimyaml, pyyaml, ruamel, libyaml-PR104
  1. https://gist.github.com/perlpunk/89ddacc551446547ad6a95f2c806fce0 - {a:{}}
  • Error: cpp, hsyaml, libyaml, ruamel, libyaml-PR104
  • - { "a": {} }: snakeyaml, nimyaml, pyyaml, pyyaml-3.12
  1. https://gist.github.com/perlpunk/1c1e959ada0ccff32f114236fe5e7240 - {a:[]}
  • Error: cpp, hsyaml, libyaml, ruamel, libyaml-PR104
  • - { "a": [] }: snakeyaml, nimyaml, pyyaml, pyyaml-3.12
  1. https://gist.github.com/perlpunk/b668d990baa0012a44737285f9c88a9a - {foo:,bar}
  • Error: libyaml, libyaml-PR104
  • - { "foo": , "bar": }: cpp, snakeyaml, nimyaml, pyyaml, pyyaml-3.12
  • - { "foo:" : , "bar": }: hsyaml, ruamel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment