1*53f7fcccSBram Moolenaar" Vim compiler file 2*53f7fcccSBram Moolenaar" Compiler: Spectral for YAML 3*53f7fcccSBram Moolenaar" Maintainer: Romain Lafourcade <[email protected]> 4*53f7fcccSBram Moolenaar" Last Change: 2021 July 21 5*53f7fcccSBram Moolenaar 6*53f7fcccSBram Moolenaarif exists("current_compiler") 7*53f7fcccSBram Moolenaar finish 8*53f7fcccSBram Moolenaarendif 9*53f7fcccSBram Moolenaarlet current_compiler = "spectral" 10*53f7fcccSBram Moolenaar 11*53f7fcccSBram Moolenaarif exists(":CompilerSet") != 2 12*53f7fcccSBram Moolenaar command -nargs=* CompilerSet setlocal <args> 13*53f7fcccSBram Moolenaarendif 14*53f7fcccSBram Moolenaar 15*53f7fcccSBram MoolenaarCompilerSet makeprg=spectral\ lint\ %\ -f\ text 16*53f7fcccSBram MoolenaarCompilerSet errorformat=%f:%l:%c\ %t%.%\\{-}\ %m 17*53f7fcccSBram Moolenaar 18