From 6f044f5f749da964e63a071fb71ae0cc75970fa0 Mon Sep 17 00:00:00 2001 From: cannorin Date: Tue, 4 Jul 2023 23:42:18 +0900 Subject: [PATCH] Fix #67: don't change indentation after comment lines --- indent/fsharp.vim | 7 +++++++ 1 file changed, 7 insertions(+) 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\)\|\