Mercurial > vim
annotate runtime/compiler/rake.vim @ 21604:d9c45474cac1 v8.2.1352
patch 8.2.1352: Vim9: no error for shadowing a script-local function
Commit: https://github.com/vim/vim/commit/ad486a0f0dd194826fdb733516bf0f35382c9dd7
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 1 23:22:18 2020 +0200
patch 8.2.1352: Vim9: no error for shadowing a script-local function
Problem: Vim9: no error for shadowing a script-local function by a nested
function.
Solution: Check for script-local function. (closes #6586)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 01 Aug 2020 23:30:03 +0200 |
parents | f0f06837a699 |
children | e1df51f68736 |
rev | line source |
---|---|
4869 | 1 " Vim compiler file |
2 " Language: Rake | |
3 " Maintainer: Tim Pope <vimNOSPAM@tpope.org> | |
4 " URL: https://github.com/vim-ruby/vim-ruby | |
5 " Release Coordinator: Doug Kearns <dougkearns@gmail.com> | |
15512 | 6 " Last Change: 2018 Mar 02 |
4869 | 7 |
8 if exists("current_compiler") | |
9 finish | |
10 endif | |
11 let current_compiler = "rake" | |
12 | |
13 if exists(":CompilerSet") != 2 " older Vim always used :setlocal | |
14 command -nargs=* CompilerSet setlocal <args> | |
15 endif | |
16 | |
17 let s:cpo_save = &cpo | |
18 set cpo-=C | |
19 | |
20 CompilerSet makeprg=rake | |
21 | |
22 CompilerSet errorformat= | |
23 \%D(in\ %f), | |
15512 | 24 \%\\s%#%\\d%#:%#\ %#from\ %f:%l:%m, |
25 \%\\s%#%\\d%#:%#\ %#from\ %f:%l:, | |
26 \%\\s%##\ %f:%l:%m%\\&%.%#%\\D:%\\d%\\+:%.%#, | |
27 \%\\s%##\ %f:%l%\\&%.%#%\\D:%\\d%\\+, | |
28 \%\\s%#[%f:%l:\ %#%m%\\&%.%#%\\D:%\\d%\\+:%.%#, | |
29 \%\\s%#%f:%l:\ %#%m%\\&%.%#%\\D:%\\d%\\+:%.%#, | |
4869 | 30 \%\\s%#%f:%l:, |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
4869
diff
changeset
|
31 \%m\ [%f:%l]:, |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
4869
diff
changeset
|
32 \%+Erake\ aborted!, |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
4869
diff
changeset
|
33 \%+EDon't\ know\ how\ to\ build\ task\ %.%#, |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
4869
diff
changeset
|
34 \%+Einvalid\ option:%.%#, |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
4869
diff
changeset
|
35 \%+Irake\ %\\S%\\+%\\s%\\+#\ %.%# |
4869 | 36 |
37 let &cpo = s:cpo_save | |
38 unlet s:cpo_save | |
39 | |
40 " vim: nowrap sw=2 sts=2 ts=8: |