blob: c7e1b1bf160aa3f1994761dc5828db4b19de690a [file] [log] [blame]
Bram Moolenaar9faec4e2021-02-27 16:38:07 +01001" Vim compiler file
2" Compiler: SML/NJ Compiler
3" Maintainer: Doug Kearns <dougkearns@gmail.com>
4" Last Change: 2020 Feb 10
5
6if exists("current_compiler")
7 finish
8endif
9let current_compiler = "sml"
10
11if exists(":CompilerSet") != 2 " older Vim always used :setlocal
12 command -nargs=* CompilerSet setlocal <args>
13endif
14
15let s:cpo_save = &cpo
16set cpo&vim
17
18CompilerSet makeprg=sml
19CompilerSet errorformat=%f:%l.%c-%\\d%\\+.%\\d%\\+\ %trror:\ %m,
20 \%f:%l.%c\ %trror:\ %m,
21 \%trror:\ %m
22 \%f:%l.%c-%\\d%\\+.%\\d%\\+\ %tarning:\ %m,
23 \%f:%l.%c\ %tarning:\ %m,
24 \%tarning:\ %m,
25 \%-G%.%#
26
27let &cpo = s:cpo_save
28unlet s:cpo_save