From: Sean O'D. <se...@ce...> - 2004-06-02 22:20:56
|
I've got this YAML doc: --- top-key: ? [ "one", "two", "three" ]: - "item1" - "item2" ...and when loading it in Ruby (I think using the syck lib), I get this error: ArgumentError: parse error on line 2, col 30: ` ? [ "one", "two", "three" ]:' Is that not a legal YAML doc? Sean O'Dell |
From: Oren Ben-K. <or...@be...> - 2004-06-02 22:33:18
|
On Thursday 03 June 2004 01:20, Sean O'Dell wrote: > I've got this YAML doc: > > --- > top-key: > ? [ "one", "two", "three" ]: > - "item1" > - "item2" Its valid, and should mean: { "top-key": { ? [ "one", "two", "three" ] : [ "item1", "item2" ] } } Have fun, Oren Ben-Kiki |
From: Sean O'D. <se...@ce...> - 2004-06-02 22:38:53
|
On Wednesday 02 June 2004 15:33, Oren Ben-Kiki wrote: > On Thursday 03 June 2004 01:20, Sean O'Dell wrote: > > I've got this YAML doc: > > > > --- > > top-key: > > ? [ "one", "two", "three" ]: > > - "item1" > > - "item2" > > Its valid, and should mean: > > { > "top-key": > { > ? [ "one", "two", "three" ] > > : [ "item1", "item2" ] > > } > } That's precisely what I wanted. So this must be a bug in the lib I guess? Sean O'Dell |