This is valid YAML (as of 1.2 and should be valid in 1.1 as well). See for example. It seems like an issue with libyaml.

Have fun,

    Oren Ben-Kiki

On Wed, Feb 9, 2011 at 12:55 AM, Aaron Patterson <> wrote:

I'm trying to figure out if my YAML is valid or not.  I have the
following document:

   order: [ :year, :month, :day ]

libyaml complains because these strings start with colons.  However, in
the spec,, any flow node can occur as an
element of a flow sequence.

An ns-flow-node(n,c) can be an an ns-plain-single(c),
ns-plain-single(c) can start with a colon from ns-plain-first-char(c).

Am I interpreting the spec incorrectly, or is there a bug in libyaml?


Aaron Patterson

The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
Yaml-core mailing list