From: Oren Ben-K. <or...@be...> - 2004-11-22 18:52:23
|
On Monday 22 November 2004 18:47, Clark C. Evans wrote: > | The first line of a non-indented plain scalar must not begin with > | /^(---|\.\.\.)[ \n\r\N\L\P]/. Sigh. > > By this you mean only top-level 'key' scalars, right? No. This can also happen for multi-line plain scalars in a non-indented flow collection: --- { ? multi-line key : multi-line value } --- [ multi-line entry ] ... So the restriction is more universal. It applies to the first line of any non-indented plain scalar. Whether it makes it more or less of a quirk is debatable :-) > | In a perfect world, our start/end markers would start with some > | indicator, and there would be no need for this rule. As it is, > | well, it is a wart in the plain scalar productions. > > Right, I suppose so. But --- is very nice for a separator... Yes. I still think >>> and ||| are pretty neat too, but Brian was right - at this point, changing --- and ... to anything else would be breaking too much backward compatibility. We'll live with them. And they do look nice :-) Have fun, Oren Ben-Kiki |