Re: Unexpected Behavior

Oren Ben-Kiki <[email protected]> Sat, 25 Apr 2015 22:30:08 +0300
Newsgroups gmane.text.yaml.general
Message-ID <CADJiDhtfQ-uWyFLMV9s4Q=EDB1aQgV2X0xWuX9BLdUoLwhC0-Q@mail.gmail.com>
Mult-line plain keys are allowed in the spec. And you are right ': ' and '#
' are not allowed in them. But '[' and '{' are ;-)

On Sat, Apr 25, 2015 at 5:50 PM, Ingy dot Net <[email protected]> wrote:

> That's already an error (at least in libyaml). Scalar values can't contain
> ': '.
>
> libsyck loads to:
>
> $VAR1 = [
>   {
>     'a b' => 'c'
>   },
>   'd'
> ];
>
> I believe that libyaml does not allow multi-line mapping keys (which is
> fairly sane). Does the spec allow it? (In general, libyaml seems to take
> the side of sanity in places where the spec and sanity differ.)
>
>
> On Fri, Apr 24, 2015 at 8:10 AM, Oren Ben-Kiki <[email protected]> wrote:
>
>> That would be tricky to define. What about other misleading cases, such
>> as:
>>
>> - a
>>     b: c
>> - d
>>
>> For example?
>>
>> On Fri, Apr 24, 2015 at 6:07 PM, Ingy dot Net <[email protected]> wrote:
>>
>>> My point was this should probably be considered an indentation error. ie
>>> we probably shouldn't allow a line starting with '- ' in a plain multi-line
>>> scalar.
>>>
>>> On Fri, Apr 24, 2015 at 1:37 AM, Oren Ben-Kiki <[email protected]>
>>> wrote:
>>>
>>>> YAML is about maps, sequences, and scalars, and this translates to
>>>> neither. You have a node that has both a scalar value 'a' and also a list
>>>> of children [ 'b' ]. I may be over-thinking it, but does this try to
>>>> naively represent some XML-like data? In which case it should be:
>>>>
>>>>   - tag: a
>>>>     children:
>>>>     - tag: b
>>>>   - tag:c
>>>>
>>>> Or something along these lines?
>>>>
>>>>
>>>> On Thu, Apr 23, 2015 at 11:31 PM, Trans <[email protected]> wrote:
>>>>
>>>>>
>>>>>
>>>>> On Thu, Apr 23, 2015 at 11:54 AM, Ingy dot Net <[email protected]> wrote:
>>>>>
>>>>>> I'm working on a universal YAML test suite, and finding unexpected
>>>>>> things.
>>>>>>
>>>>>> Guess what this does:
>>>>>>
>>>>>> - a
>>>>>>   - b
>>>>>> - c
>>>>>>
>>>>>>
>>>>> Trees structures anyone?
>>>>>
>>>>> trans
>>>>>
>>>>>
>>>>> P.S. @igny sorry I bailed on you in helping with those projects, I
>>>>> just don't ever seem to have the time, and it wasn't really clear to me
>>>>> what I could actually do to help.
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> One dashboard for servers and applications across
>>>>> Physical-Virtual-Cloud
>>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>>> Performance metrics, stats and reports that give you Actionable
>>>>> Insights
>>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>> _______________________________________________
>>>>> Yaml-core mailing list
>>>>> [email protected]
>>>>> https://lists.sourceforge.net/lists/listinfo/yaml-core
>>>>>
>>>>>
>>>>
>>>
>>
>

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y

_______________________________________________
Yaml-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yaml-core