Re: Anchor on key of map

Tina Müller <[email protected]> Sat, 4 Jan 2020 21:43:46 +0100 (CET)
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>
Hi Oliver,

On Sat, 4 Jan 2020, Oliver B. Fischer wrote:

> What references the alias in the following document?
>
> - ---
> - - k1: v2
> - - &a k2: v2
>
> ....
>
> Is alias "a" a reference only to the key node or to the key value pair?

The alias is for the key.
If you want to create an alias for a (block) mapping or sequence, the alias
must be followed by a newline. If there is no newline, the alias always
references the following node.

Greetings from Berlin to Berlin ;-)

cheers,
tina