diff options
author | Russ Allbery <rra@debian.org> | 2008-05-09 15:09:47 -0700 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-05-12 16:48:30 -0500 |
commit | 954aad4faa33ff9c4504eb5673c7dd122a914d4a (patch) | |
tree | 9311ba455c968bfa419ea5062fbb55ca6fb713ef /lib/puppet/util/autoload.rb | |
parent | f52e3433da9001f85722f9efcb90208e4bb2fd2b (diff) | |
download | puppet-954aad4faa33ff9c4504eb5673c7dd122a914d4a.tar.gz puppet-954aad4faa33ff9c4504eb5673c7dd122a914d4a.tar.xz puppet-954aad4faa33ff9c4504eb5673c7dd122a914d4a.zip |
Fix Emacs mode indentation of multiple nested blocks
Indentation of multiple nested blocks was broken; the closing braces
of all the outer blocks were put into column 0 because finding the
block indentation failed. Do normal indentation if finding a block
indentation fails, but more importantly, be smarter about searching
backwards to find the beginning of the current block, taking balanced
braces into account.
There is probably some less-ugly and more Emacs-native way of doing
this.
Diffstat (limited to 'lib/puppet/util/autoload.rb')
0 files changed, 0 insertions, 0 deletions