Permalink
Browse files

Indentation fix

It's smal fix for indentation like:
 - name: service start
   service:
     name: xxxx
     state: restarted

Nex line after `service:` not indented and it's a bug.
  • Loading branch information...
1 parent fddb011 commit 7c6273b9b127766f6d283c225833e688ac67d0ba @UnderGreen UnderGreen committed Jul 23, 2015
Showing with 2 additions and 0 deletions.
  1. +2 −0 indent/ansible.vim
View
@@ -42,6 +42,8 @@ function GetAnsibleIndent(lnum)
return indent
elseif prevline =~ ':\s*[>|]?$'
return increase
+ elseif prevline =~ ':$'
+ return increase
elseif prevline =~ '^\s*-\s*$'
return increase
elseif prevline =~ '^\s*-\s\+[^:]\+:\s*\S'

0 comments on commit 7c6273b

Please sign in to comment.