summaryrefslogtreecommitdiffstats
path: root/indent
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2016-05-02 10:48:28 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2016-05-02 10:48:28 +0200
commit5529a5e8e21e4577e4cd3551f2cbad59b5b406e8 (patch)
tree6bcc43dba19fc5e68abc8831ae778ba076e5004b /indent
parent905031eb9536adb38d793c1ced6d61057d3ca456 (diff)
downloadvim-polyglot-5529a5e8e21e4577e4cd3551f2cbad59b5b406e8.tar.gz
vim-polyglot-5529a5e8e21e4577e4cd3551f2cbad59b5b406e8.zip
Update vim-puppet source to voxpupuli/vim-puppet, closes #115
Diffstat (limited to '')
-rw-r--r--indent/puppet.vim6
1 files changed, 1 insertions, 5 deletions
diff --git a/indent/puppet.vim b/indent/puppet.vim
index e9b08447..d947b7f6 100644
--- a/indent/puppet.vim
+++ b/indent/puppet.vim
@@ -53,11 +53,7 @@ function! GetPuppetIndent()
let pline = getline(pnum)
let ind = indent(pnum)
- if pline =~ '^\s*#'
- return ind
- endif
-
- if pline =~ '\({\|\[\|(\|:\)$'
+ if pline =~ '\({\|\[\|(\|:\)\s*\(#.*\)\?$'
let ind += &sw
elseif pline =~ ';$' && pline !~ '[^:]\+:.*[=+]>.*'
let ind -= &sw