comparison runtime/indent/sml.vim @ 28379:6dd88e45d47d

Update runtime files Commit: https://github.com/vim/vim/commit/cbaff5e06ec525d31dc44093125c42029e01d508 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Apr 8 17:45:08 2022 +0100 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Fri, 08 Apr 2022 19:00:04 +0200
parents 63b0b7b79b25
children
comparison
equal deleted inserted replaced
28378:b8d39e361293 28379:6dd88e45d47d
5 " Original OCaml Version: 5 " Original OCaml Version:
6 " Jean-Francois Yuen <jfyuen@ifrance.com> 6 " Jean-Francois Yuen <jfyuen@ifrance.com>
7 " Mike Leary <leary@nwlink.com> 7 " Mike Leary <leary@nwlink.com>
8 " Markus Mottl <markus@oefai.at> 8 " Markus Mottl <markus@oefai.at>
9 " OCaml URL: http://www.oefai.at/~markus/vim/indent/ocaml.vim 9 " OCaml URL: http://www.oefai.at/~markus/vim/indent/ocaml.vim
10 " Last Change: 2003 Jan 04 - Adapted to SML 10 " Last Change: 2022 Apr 06
11 " 2002 Nov 06 - Some fixes (JY) 11 " 2002 Nov 06 - Some fixes (JY)
12 " 2002 Oct 28 - Fixed bug with indentation of ']' (MM) 12 " 2002 Oct 28 - Fixed bug with indentation of ']' (MM)
13 " 2002 Oct 22 - Major rewrite (JY) 13 " 2002 Oct 22 - Major rewrite (JY)
14 " 2022 April: b:undo_indent added by Doug Kearns
14 15
15 " Only load this indent file when no other was loaded. 16 " Only load this indent file when no other was loaded.
16 if exists("b:did_indent") 17 if exists("b:did_indent")
17 finish 18 finish
18 endif 19 endif
23 setlocal indentkeys+=0=and,0=else,0=end,0=handle,0=if,0=in,0=let,0=then,0=val,0=fun,0=\|,0=*),0) 24 setlocal indentkeys+=0=and,0=else,0=end,0=handle,0=if,0=in,0=let,0=then,0=val,0=fun,0=\|,0=*),0)
24 setlocal nolisp 25 setlocal nolisp
25 setlocal nosmartindent 26 setlocal nosmartindent
26 setlocal textwidth=80 27 setlocal textwidth=80
27 setlocal shiftwidth=2 28 setlocal shiftwidth=2
29
30 let b:undo_indent = "setl et< inde< indk< lisp< si< sw< tw<"
28 31
29 " Comment formatting 32 " Comment formatting
30 if (has("comments")) 33 if (has("comments"))
31 set comments=sr:(*,mb:*,ex:*) 34 set comments=sr:(*,mb:*,ex:*)
32 set fo=cqort 35 set fo=cqort