Closed darkfeline closed 7 years ago
huh i could have sworn this was raised somewhere but apparently not. Anyway, i spent a long afternoon once looking into this and all I can say is this is a pain. The alignment is done using the emacs align functions which as far as I could tell could not be made to understand scopes. There doesn't seem to be an easy built-in way to fix this, hence the pain.
When
puppet-align-block
searches for the beginning of a hash, it gets confused by a previous nested block. With cursor onmetafalica
:Starting from:
Current behavior:
Desired:
Actual desired behavior can be debated, whether the nested block is aligned in the same command or it would require running
puppet-align-block
inside the nested block.