Re: Is % a valid string? Different behaviour of Syck and libyaml!
Oren Ben-Kiki <[email protected]>
| Newsgroups | gmane.text.yaml.general |
|---|---|
| Message-ID | <CADJiDhvShrz9Ho=kt1CzwQhj08xBmvTa3K2rxkhDE8_2i39usA@mail.gmail.com> |
% is an "indicator" character so it can't be the first in an unquoted
(plain) scalar. Therefore syck is wrong in accepting it.
Have fun,
Oren Ben-Kiki
On Thu, Nov 24, 2011 at 4:29 PM, j.wuttke <j.wuttke-97/[email protected]> wrote:
> Is this valid YAML:?
>
> ---
> testtext: %
> ...
>
> It is parsed without difficulty by Ruby1.8 (Syck based)
> whereas it fails under Ruby1.9.1 (psych -> libyaml).
>
> By the way, the web site yaml.org says psych is "in Ruby
> core for 1.9.2". I suggest to correct this into "since 1.9.1".
> (Or "since 1.9" ? I ignore whether it was present in 1.9.0)
>
> - Joachim
>
>
>
>
> ------------------------------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------------------------
> Forschungszentrum Juelich GmbH
> 52425 Juelich
> Sitz der Gesellschaft: Juelich
> Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
> Vorsitzender des Aufsichtsrats: MinDirig Dr. Karl Eugen Huthmacher
> Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
> Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
> Prof. Dr. Sebastian M. Schmidt
>
> ------------------------------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------------------------
>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, application performance,
> security threats, fraudulent activity, and more. Splunk takes this
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> _______________________________________________
> Yaml-core mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/yaml-core
>
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Yaml-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yaml-core