annotate runtime/compiler/spectral.vim @ 29245:b12fd2b3be63 v8.2.5141

patch 8.2.5141: using "volatile int" in a signal handler might be wrong Commit: https://github.com/vim/vim/commit/155f2d1451949d1124bfd6ba9c55be6bd74bab75 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 20 13:38:33 2022 +0100 patch 8.2.5141: using "volatile int" in a signal handler might be wrong Problem: Using "volatile int" in a signal handler might be wrong. Solution: Use "volatile sig_atomic_t".
author Bram Moolenaar <Bram@vim.org>
date Mon, 20 Jun 2022 14:45:03 +0200
parents bdda48f01a68
children e1df51f68736
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
25402
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 " Vim compiler file
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 " Compiler: Spectral for YAML
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 " Maintainer: Romain Lafourcade <romainlafourcade@gmail.com>
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 " Last Change: 2021 July 21
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 if exists("current_compiler")
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 finish
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 endif
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 let current_compiler = "spectral"
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 if exists(":CompilerSet") != 2
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12 command -nargs=* CompilerSet setlocal <args>
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13 endif
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
15 CompilerSet makeprg=spectral\ lint\ %\ -f\ text
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16 CompilerSet errorformat=%f:%l:%c\ %t%.%\\{-}\ %m
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
17