Re: Unexpected Behavior

Oren Ben-Kiki <[email protected]> Fri, 24 Apr 2015 18:10:46 +0300
Newsgroups gmane.text.yaml.general
Message-ID <CADJiDhu2h8c3L-Tyn+-pBqDfPdJKVMOozw5nWW4j09DUKVC+yg@mail.gmail.com>
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