Re: Streams, directives, and explicit document end markers

Oren Ben-Kiki <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>
On Wed, Dec 9, 2009 at 12:47 PM, Burt Harris <[email protected]>wrote:

> In Yaml 1.2, l-yaml-stream [211] requires that one of the following two
> conditions between documents in a stream:
>
>  - Either an explicit end-of-document indicator "...", optional directives,
> and an end-of-directives indicator "---"
>
>  - Or, an explicit end-of-directives indicator "---",
> _with_no_directives_preceding_it_!
>
> Unfortunately, many existing example YAML streams do not conform to the
> last part of this definition.  Attempting to deal with these examples had
> complicated my previous YAML 1.1 implementations.   I've pretty well
> convinced myself that these are all bad examples, I hope you can confirm.
>

Yes. There was an inherent ambiguity in YAML 1.1 and the 1.2 spec corrected
this. Files such as these you have listed are indeed "bad". And one of them
is a right hand side of a 1.2 example, too... Yet another typo to fix.
Thanks for catching that!

Have fun.

    Oren Ben-Kiki

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev

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