Subject: Re: bug#77094: 31.0.50; yaml-ts-mode does not indent after yaml mapping keys

From: Juri Linkov <[email-masked]>
Date: Tue, 25 Mar 2025 09:58:32 +0200

> ```
>     spec:
>       containers:
>       - name: postgres-container
>         image: postgres:16
>         env:
>           - name: 
> ```
>
> But that's the ideal situation with correct indentation.
> In reality it does that this way:
>
> ```
>     spec:
>       containers:
>       - name: postgres-container
>         image: postgres:16
>         env:
>   - name: 
> ```
>
> Should this situation be handled by the language mode or
> maybe by the completion system and the language mode together?

Both indentations are correct.  'haml-mode' handles
this ambiguity by supporting all valid indentations, i.e.
on the first TAB it indents to the first valid position,
on the second TAB indents to another valid position, etc.