blob: a0b13b6c8adba7ac424b2f4c4463a3f270e1a5b7 [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>
Bram Moolenaar1588bc82022-03-08 21:35:07 +00004" Last Change: 2022 Feb 09
Bram Moolenaar9faec4e2021-02-27 16:38:07 +01005
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
Bram Moolenaar1588bc82022-03-08 21:35:07 +000019CompilerSet errorformat=%f:%l.%c-%e.%k\ %trror:\ %m,
Bram Moolenaar9faec4e2021-02-27 16:38:07 +010020 \%f:%l.%c\ %trror:\ %m,
Bram Moolenaar1588bc82022-03-08 21:35:07 +000021 \%trror:\ %m,
22 \%f:%l.%c-%e.%k\ %tarning:\ %m,
Bram Moolenaar9faec4e2021-02-27 16:38:07 +010023 \%f:%l.%c\ %tarning:\ %m,
24 \%tarning:\ %m,
25 \%-G%.%#
26
27let &cpo = s:cpo_save
28unlet s:cpo_save