Re: ypaste parsing errors
Oren Ben-Kiki <[email protected]>
| Newsgroups | gmane.text.yaml.general |
|---|---|
| Message-ID | <1237124386.17793.25.camel@nero> |
I'm working on an updated draft that fixes all the typos/issues/bugs
(basically done; proofreading and reviewing my fixes now).
Thanks again for everyone who posted an issue with the spec - it is a
great help!
I have addressed all of them (more or less). There is an issue with the
following one:
On Sat, 2009-01-03 at 20:35 -0800, Burt Harris wrote:
> - A comma in a block mode plain scalar: The ypaste message is
> "Expected start of line". (Adding a newline doesn't help.)
>
> --- # Comma in a block plain scalar
> One, two: three
> ...
Here's the problem.
Currently, plain scalar keys are extremely restricted.
Specifically, they are restricted in the same way inside flow scalars as
inside block scalars.
In both cases, they may not contain [ { , } ].
Currently plain scalars come in three levels of restrictions.
Least restricted are block plain scalars (values);
More restricted are flow plain scalars (values);
Most restricted are (implicit) key plain scalars (in both flow and
block).
We have had this increasing-restrictions design for, well, forever
really.
The alternative would be to have four variants:
All the combinations {flow,block} X {key,value},
Where flow is more restricted than block,
and independently (implicit) key is more restricted than value.
This isn't a huge change, but it is one (lifting existing restrictions).
What do people feel about this?
Have fun,
Oren Ben-Kiki
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com