voxpupuli / puppet-mode

Edit Puppet manifests with GNU Emacs 24
https://github.com/voxpupuli/puppet-mode
GNU General Public License v3.0
90 stars 60 forks source link

Skip nested block when aligning #94

Closed darkfeline closed 7 years ago

darkfeline commented 7 years ago

Currently, all arrows will be aligned, including in nested blocks.

class foo {
  $x = {
    'a'        => 1,
    'foo'      => {
      'apples' => 1,
    },
  }
}

We get better behavior by skipping alignment in nested blocks.

https://github.com/voxpupuli/puppet-mode/issues/92