annotate runtime/compiler/shellcheck.vim @ 29247:5f314b2ed494 v8.2.5142

patch 8.2.5142: startup test fails if there is a status bar Commit: https://github.com/vim/vim/commit/fa04eae5a5b9394079bde2d37ce6f9f8a5567d48 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jun 21 14:38:40 2022 +0100 patch 8.2.5142: startup test fails if there is a status bar Problem: Startup test fails if there is a status bar at the top of the screen. (Ernie Rael) Solution: Use a larger vertical offset in the test.
author Bram Moolenaar <Bram@vim.org>
date Tue, 21 Jun 2022 18:45:07 +0200
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