summaryrefslogtreecommitdiffstats
path: root/runtime/compiler/spectral.vim
blob: bd13c51f4353d96383dcfee6c6ad7bbbbe5b8226 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
" Vim compiler file
" Compiler:    Spectral for YAML
" Maintainer:  Romain Lafourcade <romainlafourcade@gmail.com>
" Last Change: 2021 July 21

if exists("current_compiler")
    finish
endif
let current_compiler = "spectral"

if exists(":CompilerSet") != 2
    command -nargs=* CompilerSet setlocal <args>
endif

CompilerSet makeprg=spectral\ lint\ %\ -f\ text
CompilerSet errorformat=%f:%l:%c\ %t%.%\\{-}\ %m