This is valid YAML (as of 1.2 and should be valid in 1.1 as well). See http://yaml.org/ypaste/802/index.html 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 <aaron@tenderlovemaking.com> wrote:
Hi,

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, http://yaml.org/spec/1.1, 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?

Thanks!

--
Aaron Patterson
http://tenderlovemaking.com/

------------------------------------------------------------------------------
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.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Yaml-core mailing list
Yaml-core@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/yaml-core