Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't indent after -type.

  • Loading branch information...
commit 1599976eb34a91222c4d89d485a8fc111442abc5 1 parent 8c12a55
@jadahl jadahl authored jimenezrick committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 indent/erlang.vim
View
4 indent/erlang.vim
@@ -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.
Something went wrong with that request. Please try again.