colons in flow sequences

Aaron Patterson <aaron-nCDmOI4KsdrYeBQzxHgb1laTQe2KTcn/@public.gmane.org>
Newsgroups gmane.text.yaml.general
Message-ID <20110208225531.GC12899@YPCMC09458>
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/yaml-core
signature.asc (application/pgp-signature, 487 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)

iQEcBAEBAgAGBQJNUcnjAAoJEJUxcLy0/6/GuOAH+wTebaCM2DD8qGhPqcvzXum1
5xYlgK976+A5tpJz6uzQnOPXStWFUZLSL81WUbiJ7QNuAd49dnWRWUIOnNCLr3qO
rUffUE0VanZ1UzBDF+WngRqOqDCG8n0c9Hp4zIM5ftvJDtSl/B+dIqoy1u3h9FY9
svqKKWgkNz25Dvc3Xslt2AkFOL1zKuhShv8cmc7nP6fRh2jrpi8NxaHbANBFlHHu
6b8p3WjplLYWbOspHtgT989geDNh9Vh/VxQTdadOFpzJhhLskIdB3g/TSxNcMmoD
o9GUBL+RiI7PpEMBIGr4HiF2YdfuJfOj1+1u9C0ZUjqm/BviSPM8edBzYDiAxRE=
=0s8r
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.