Forums » Ruby-core » Possible YAML error?

Possible YAML error?
Posted by Ola Bini (Guest)
on 01.06.2006 13:21
Hi,

While trying to process the source index Gemspec with RbYAML I found
something which may possibly be an error in the output from Syck YAML:

irb(main):006:0> y({"description"=>"`ruby-extra' is a package full of"})
---
description: `ruby-extra' is a package full of
nil
irb(main):007:0>

Maybe I've misread the YAML spec, but having ` (ascii 96) as the first
character of a plain scalar seem to be prohibited.

Regards
 Ola Bini
Re: Possible YAML error?
Posted by why the lucky stiff (Guest)
on 01.06.2006 14:53
On Thu, Jun 01, 2006 at 08:18:31PM +0900, Ola Bini wrote:
> Maybe I've misread the YAML spec, but having ` (ascii 96) as the first
> character of a plain scalar seem to be prohibited.

Egads.  You're right.  For some reason the ampersand was listed twice in 
Syck's
list of c-indicators.  And the backtick was omitted.  Thankyou!

_why
Re: Possible YAML error?
Posted by Ola Bini (Guest)
on 01.06.2006 15:56
No worries!

I was worried that my implementation was wrong. =)

Regards
 Ola Bini

----- Original Message -----
From: why the lucky stiff <ruby-core@whytheluckystiff.net>
Date: Thursday, June 1, 2006 2:51 pm
Subject: Re: Possible YAML error?
To: ruby-core@ruby-lang.org