annotate runtime/compiler/mcs.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 9910cbff5f16
children 2c3f939d46bf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1125
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
1 " Vim compiler file
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
2 " Compiler: Mono C# Compiler
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
3 " Maintainer: Jarek Sobiecki <harijari@go2.pl>
3713
9910cbff5f16 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
4 " Last Updated By: Peter Collingbourne
9910cbff5f16 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
5 " Latest Revision: 2012 Jul 19
1125
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
6
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
7 if exists("current_compiler")
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
8 finish
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
9 endif
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
10 let current_compiler = "mcs"
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
11
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
12 let s:cpo_save = &cpo
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
13 set cpo-=C
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
14
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
15 setlocal errorformat=
3713
9910cbff5f16 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
16 \%D%.%#Project\ \"%f/%[%^/\"]%#\"%.%#,
9910cbff5f16 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
17 \%X%.%#Done\ building\ project\ \"%f/%[%^/\"]%#\"%.%#,
9910cbff5f16 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
18 \%-G%\\s%.%#,
9910cbff5f16 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
19 \%E%f(%l):\ error\ CS%n:%m,
9910cbff5f16 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
20 \%W%f(%l):\ warning\ CS%n:%m,
1125
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
21 \%E%f(%l\\,%c):\ error\ CS%n:%m,
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
22 \%W%f(%l\\,%c):\ warning\ CS%n:%m,
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
23 \%E%>syntax\ error\\,%m,%Z%f(%l\\,%c):\ error\ CS%n:%m,
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
24 \%D%*\\a[%*\\d]:\ Entering\ directory\ `%f',
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
25 \%X%*\\a[%*\\d]:\ Leaving\ directory\ `%f',
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
26 \%DMaking\ %*\\a\ in\ %f,
3713
9910cbff5f16 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
27 \%-G%.%#
1125
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
28
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
29 let &cpo = s:cpo_save
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
30 unlet s:cpo_save