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

Comments change the indentation level #110

Closed paran1 closed 6 years ago

paran1 commented 6 years ago

Expected indentation:

# :
# {
# (
# ;
#

Actual indentation:

# :
# {
  # (
    # ;
  #

I just closed #105 that had a fix for this issue. I realized that this indentation worked correctly before commit a5d1a39d1757f3a4d9db8ae8378de418741df9a5, and the code introduced in that commit seems to be largely unmodified since then. Maybe there is a small bug in there that could be fixed instead of using my hack.