From 5529a5e8e21e4577e4cd3551f2cbad59b5b406e8 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Mon, 2 May 2016 10:48:28 +0200 Subject: Update vim-puppet source to voxpupuli/vim-puppet, closes #115 --- indent/puppet.vim | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'indent') 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 -- cgit v1.2.3