Permalink
Browse files

Don't indent after -type.

  • Loading branch information...
1 parent 8c12a55 commit 1599976eb34a91222c4d89d485a8fc111442abc5 @jadahl jadahl committed with jimenezrick Sep 27, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 indent/erlang.vim
View
@@ -33,6 +33,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 1599976

Please sign in to comment.