The provided puppet-mode for emacs provides indent rules for puppet
code. This is a fix for properly indenting the alias metaparameter:
file { sshdconfig:
path => $operatingsystem ? {
solaris => "/usr/local/etc/ssh/sshd_config",
default => "/etc/ssh/sshd_config"
},
source => "..."
}
183,186c183,186
< ((and (looking-at "^\\s-*},?\\s-*$") block-indent)
< ;; This line contains a closing brace or a closing brace
followed by
< ;; a comma and we're at the inner block, so we should indent
it
< ;; matching the indentation of the opening brace of the block.
---
> ((and (looking-at "^\\s-*}\\s-*$") block-indent)
> ;; This line contains only a closing brace and we're at the inner
> ;; block, so we should indent it matching the indentation of the
> ;; opening brace of the block.
207,210c207,210
< ;; Brace, brace followed by a comma, paren not on a
line by itself
< ;; will be indented one level too much, but don't catch
cases
< ;; where the block is started and closed on the same
line.
< ((looking-at "^[^\n\({]*[\)}],?\\s-*$")
---
> ;; Brace or paren not on a line by itself will be indented one
> ;; level too much, but don't catch cases where the block is
> ;; started and closed on the same line.
> ((looking-at "^[^\n\({]*[\)}]\\s-*$")
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---