Mercurial > vim
annotate runtime/compiler/msbuild.vim @ 27235:6b80d4acac8e v8.2.4146
patch 8.2.4146: Vim9: shadowed function can be used in compiled function
Commit: https://github.com/vim/vim/commit/f67c717e34e5553ab1c3b02b1861274cbcb78935
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 19 17:23:05 2022 +0000
patch 8.2.4146: Vim9: shadowed function can be used in compiled function
Problem: Vim9: shadowed function can be used in compiled function but not
at script level.
Solution: Also give an error in a compiled function. (closes #9563)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 19 Jan 2022 18:30:07 +0100 |
parents | eb6ab7e78925 |
children | e1df51f68736 |
rev | line source |
---|---|
4437 | 1 " Vim compiler file |
2 " Compiler: Microsoft Visual Studio C# | |
3 " Maintainer: Chiel ten Brinke (ctje92@gmail.com) | |
4 " Last Change: 2013 May 13 | |
5 | |
6 if exists("current_compiler") | |
7 finish | |
8 endif | |
9 let current_compiler = "msbuild" | |
10 let s:keepcpo= &cpo | |
11 set cpo&vim | |
12 | |
13 if exists(":CompilerSet") != 2 " older Vim always used :setlocal | |
14 command -nargs=* CompilerSet setlocal <args> | |
15 endif | |
16 | |
17 CompilerSet errorformat=\ %#%f(%l\\\,%c):\ %m | |
18 CompilerSet makeprg=msbuild\ /nologo\ /v:q\ /property:GenerateFullPaths=true | |
19 | |
20 let &cpo = s:keepcpo | |
21 unlet s:keepcpo |