Bram Moolenaar | 53f7fcc | 2021-07-28 20:10:16 +0200 | [diff] [blame] | 1 | " Vim compiler file |
2 | " Compiler: Spectral for YAML | ||||
3 | " Maintainer: Romain Lafourcade <romainlafourcade@gmail.com> | ||||
4 | " Last Change: 2021 July 21 | ||||
5 | |||||
6 | if exists("current_compiler") | ||||
7 | finish | ||||
8 | endif | ||||
9 | let current_compiler = "spectral" | ||||
10 | |||||
11 | if exists(":CompilerSet") != 2 | ||||
12 | command -nargs=* CompilerSet setlocal <args> | ||||
13 | endif | ||||
14 | |||||
15 | CompilerSet makeprg=spectral\ lint\ %\ -f\ text | ||||
16 | CompilerSet errorformat=%f:%l:%c\ %t%.%\\{-}\ %m | ||||
17 |