diff --git a/indent/fsharp.vim b/indent/fsharp.vim index 6227bdd..2571be0 100644 --- a/indent/fsharp.vim +++ b/indent/fsharp.vim @@ -185,6 +185,13 @@ function! GetFsharpIndent() endif + + " Don't change indent after lines begins with '//': + if lline =~ '^\s*//' + let i = indent(v:lnum) + return i == 0 ? ind : i + endif + " Add a 'shiftwidth' after lines ending with: if lline =~ '\(:\|=\|->\|<-\|(\|\[\|{\|{<\|\[|\|\[<\|\<\(begin\|do\|else\|fun\|function\|functor\|if\|initializer\|object\|private\|sig\|struct\|then\|try\)\|\