You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: indent/fsharp.vim
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -185,6 +185,13 @@ function! GetFsharpIndent()
185
185
186
186
endif
187
187
188
+
189
+
" Don't change indent after lines begins with '//':
190
+
if lline =~ '^\s*//'
191
+
leti=indent(v:lnum)
192
+
returni==0 ? ind : i
193
+
endif
194
+
188
195
" Add a 'shiftwidth' after lines ending with:
189
196
if lline =~ '\(:\|=\|->\|<-\|(\|\[\|{\|{<\|\[|\|\[<\|\<\(begin\|do\|else\|fun\|function\|functor\|if\|initializer\|object\|private\|sig\|struct\|then\|try\)\|\<object\s*(.*)\)\s*$'
0 commit comments