Skip to content

Commit ab8547c

Browse files
redxaxdercoot
authored andcommitted
Indentation level after type declaration (#51) (#60)
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.
1 parent 8528d2a commit ab8547c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

indent/purescript.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function! GetPurescriptIndent()
101101
return s
102102
endif
103103

104-
if prevline =~ '^\S.*::' && line !~ '^\s*\(\.\|->\|→\|=>\|⇒\)' && !~ '^instance'
104+
if prevline =~ '^\S.*::' && line !~ '^\s*\(\.\|->\|→\|=>\|⇒\)' && prevline !~ '^instance'
105105
" f :: String
106106
" -> String
107107
return 0

0 commit comments

Comments
 (0)