annotate runtime/compiler/shellcheck.vim @ 27935:457a7fd87147

Added tag v8.2.4492 for changeset c8d6c2736796ad5d7a105ee4e4fb89b4e08bf105
author Bram Moolenaar <Bram@vim.org>
date Wed, 02 Mar 2022 21:00:03 +0100
parents a3bb84cd0f59
children e1df51f68736
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
22441
a3bb84cd0f59 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 " Vim compiler file
a3bb84cd0f59 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 " Compiler: ShellCheck
a3bb84cd0f59 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 " Maintainer: Doug Kearns <dougkearns@gmail.com>
a3bb84cd0f59 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 " Last Change: 2020 Sep 4
a3bb84cd0f59 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5
a3bb84cd0f59 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 if exists("current_compiler")
a3bb84cd0f59 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 finish
a3bb84cd0f59 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 endif
a3bb84cd0f59 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 let current_compiler = "shellcheck"
a3bb84cd0f59 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10
a3bb84cd0f59 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 if exists(":CompilerSet") != 2 " older Vim always used :setlocal
a3bb84cd0f59 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12 command -nargs=* CompilerSet setlocal <args>
a3bb84cd0f59 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13 endif
a3bb84cd0f59 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14
a3bb84cd0f59 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
15 let s:cpo_save = &cpo
a3bb84cd0f59 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16 set cpo&vim
a3bb84cd0f59 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
17
a3bb84cd0f59 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
18 CompilerSet makeprg=shellcheck\ -f\ gcc
a3bb84cd0f59 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
19 CompilerSet errorformat=%f:%l:%c:\ %trror:\ %m\ [SC%n],
a3bb84cd0f59 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
20 \%f:%l:%c:\ %tarning:\ %m\ [SC%n],
a3bb84cd0f59 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
21 \%f:%l:%c:\ %tote:\ %m\ [SC%n],
a3bb84cd0f59 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
22 \%-G%.%#
a3bb84cd0f59 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
23
a3bb84cd0f59 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
24 let &cpo = s:cpo_save
a3bb84cd0f59 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
25 unlet s:cpo_save