Browse files

Don't indent after -type.

  • Loading branch information...
1 parent 95e3da3 commit 9133f6b16b8aaa18bc1d26cfb674e9897a7a9fb3 @jadahl jadahl committed Sep 27, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 indent/erlang.vim
View
4 indent/erlang.vim
@@ -32,6 +32,10 @@ function s:ErlangIndentAfterLine(l)
let lastReceive = 0 " the last token was a 'receive'; needed for 'after'
let lastHashMark = 0 " the last token was a 'hashmark'
+ " ignore type annotation lines
+ if a:l =~# '^\s*-type'
+ return 0
+
while 0<= i && i < length
" m: the next value of the i

0 comments on commit 9133f6b

Please sign in to comment.