From: Brian I. <in...@tt...> - 2004-11-11 17:26:44
|
On 10/11/04 07:42 +0200, Oren Ben-Kiki wrote: > On Wednesday 10 November 2004 02:12, Brian Ingerson wrote: > > How about not allowing top level scalars to use the first column? > > That doesn't solve the problem because of: > > --- > "---" : "..." > "%YAML" : "1.1" > ... > > The problem is with all non-indented scalars, not just top-level ones. But top-level, multiline, block scalars are the problem. Keys in top level mappings are not the proble because, as you show, you can quote the unindented ones. And all the other ones are indented. The real problem is that we allow a big chunk of multiline unindented text to have a '---\n' slapped on the front of it, and we call that valid yaml. I'm suggesting that we at least indent it. It not only solves the syntax ambiguities, but also gives a visual clue that the text is YAML encoded. Cheers, Brian |