While writing a (very custom) YAML parser based on the 1.1 spec, I=20
encountered a problem with in-line sequences. I'm using the 1.1 spec on=20
http://yaml.org/spec/current.html (I've tried to check with the CVS versi=
but can't read it very well).
The production for ns-l-in-line-sequence(n) is
 ns-l-in-line-sequence(n) ::=3D =E2=80=9C-=E2=80=9D s-l+block-inden=
However, the block-out context means that one space of indentation is re=
again, which makes the example immediately following invalid:
- - one
- two # one indentation space too many!
My guess would be that the context has to be block-in, for both the firs=
the subsequent entries.
PS I'm not on the list, so please CC replies to me as well.
Arnout Vandecappelle <vdcappel@...>
Senior researcher IMEC II, room 02.02
IMEC/DESICS/DDT Data Management team tel. +32-16-288.122
On Tuesday 17 May 2005 15:43, Arnout Vandecappelle wrote:
>  ns-l-in-line-sequence(n) ::= "-"
> s-l+block-indented(n,block-out) l-block-seq-entry(n,block-out)*
> My guess would be that the context has to be block-in, for both the
> first and the subsequent entries.
Nice catch! You are wuite right. In fact, the whole point of block-in
was to be used there. I don't know how I could have missed it. Thanks!
There have been a list of small fixes like that. I guess it is time I'll
integrate them all into the CVS version.
> I'm using the 1.1 spec on
> http://yaml.org/spec/current.html (I've tried to check with the CVS
> version but can't read it very well)
Did you try looking at: http://yaml.org/spec/cvs/current.html
If so, what was the problem reading it? This is the version with all the