annotate runtime/compiler/shellcheck.vim @ 23440:b0587f7ec422 v8.2.2263

patch 8.2.2263: Vim9: compilation error with try-catch in skipped block Commit: https://github.com/vim/vim/commit/69f7050cebb0f069d6e39571961b9bbe8531c69a Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 1 16:10:46 2021 +0100 patch 8.2.2263: Vim9: compilation error with try-catch in skipped block Problem: Vim9: compilation error with try-catch in skipped block. Solution: Do not bail out when generate_instr() returns NULL. (closes https://github.com/vim/vim/issues/7584)
author Bram Moolenaar <Bram@vim.org>
date Fri, 01 Jan 2021 16:15:04 +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