Re: colons in flow sequences

Oren Ben-Kiki <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>
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-nCDmOI4KsdrYeBQzxHgb1laTQe2KTcn/@public.gmane.org
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/yaml-core
>
>

------------------------------------------------------------------------------
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
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.