From 7e4bbf9ef6e72ec399a319d388718a40b7c7f487 Mon Sep 17 00:00:00 2001 From: redxaxder Date: Wed, 4 Jul 2018 20:13:21 -0500 Subject: [PATCH] Indentation level after type declaration (#51) If we're on the line following a type annotation, and our line doesn't start with dots or arrows, and the previous line isn't an instance declaration, then indentation level is 0. --- indent/purescript.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indent/purescript.vim b/indent/purescript.vim index 71e06da..67642a6 100644 --- a/indent/purescript.vim +++ b/indent/purescript.vim @@ -101,7 +101,7 @@ function! GetPurescriptIndent() return s endif - if prevline =~ '^\S.*::' && line !~ '^\s*\(\.\|->\|→\|=>\|⇒\)' && !~ '^instance' + if prevline =~ '^\S.*::' && line !~ '^\s*\(\.\|->\|→\|=>\|⇒\)' && prevline !~ '^instance' " f :: String " -> String return 0