diff options
| author | James Turnbull <james@lovedthanlost.net> | 2008-11-24 21:31:22 +1100 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2008-11-24 21:31:22 +1100 |
| commit | 9ed382d397c79995e850a91ac92e22106d670bed (patch) | |
| tree | 97e7636701aae21b56eede0000dc65fd6c4cc164 | |
| parent | 27a750d4884f2f48c05f5ab6a5c70c7cecf5ff04 (diff) | |
| download | puppet-9ed382d397c79995e850a91ac92e22106d670bed.tar.gz puppet-9ed382d397c79995e850a91ac92e22106d670bed.tar.xz puppet-9ed382d397c79995e850a91ac92e22106d670bed.zip | |
Fixed #1767 - Minor fix to emacs mode
| -rw-r--r-- | CHANGELOG | 2 | ||||
| -rw-r--r-- | ext/emacs/puppet-mode.el | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,6 @@ 0.24.x + Fixed #1767 - Minor fix to emacs mode + Fixed #1711 - fileserver test fails due to incorrect mocking Fixed #1751 - Mac OS X DirectoryService nameservice provider support for diff --git a/ext/emacs/puppet-mode.el b/ext/emacs/puppet-mode.el index 11fcfea0a..0029b9c3d 100644 --- a/ext/emacs/puppet-mode.el +++ b/ext/emacs/puppet-mode.el @@ -226,7 +226,7 @@ of the initial include plus puppet-include-indent." ;; Semicolon ends a block for a resource when multiple resources ;; are defined in the same block, but try not to get the case of ;; a complete resource on a single line wrong. - ((looking-at "^\\([^'\":\n]\\|\"[^\n\"]*\"\\|'[^\n']'\\)**;\\s-*$") + ((looking-at "^\\([^'\":\n]\\|\"[^\n\"]*\"\\|'[^\n']*'\\)*;\\s-*$") (setq cur-indent (- (current-indentation) puppet-indent-level)) (setq not-indented nil)) |
