annotate src/Make_ming.mak @ 33914:966a1af141b0 v9.0.2157

patch 9.0.2157: Vim9: incorrectly parses :def func definitions Commit: https://github.com/vim/vim/commit/e4a450a87ba532cbfe1c4e97cac378eaafc3ae39 Author: Christian Brabandt <cb@256bit.org> Date: Fri Dec 8 20:57:38 2023 +0100 patch 9.0.2157: Vim9: incorrectly parses :def func definitions Problem: Vim9: incorrectly parses :def func definitions Solution: check for more context when parsing function args Signed-off-by: Christian Brabandt <cb@256bit.org> Incorrectly parses def function definitions Vim currently allows to define the following vim9 function: def Func(f= ) enddef It currently thinks a Lambda is following the `=` but it doesn't check, that there is actually an expression following. So when such a think is encountered, remember that an expression should be following. If no expression is coming in the next few lines, fail parsing the function arguments, which will Vim no longer accept such a function. Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Mon, 11 Dec 2023 18:00:02 +0100
parents 626fb8e8bb8a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 #
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6284
diff changeset
2 # Makefile for VIM on Win32, using MinGW
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 #
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6284
diff changeset
4 # Also read INSTALLpc.txt!
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 #
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6284
diff changeset
6 # The old Make_ming.mak (maintained by Ron Aaron et al.) was merged into
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6284
diff changeset
7 # Make_cyg_ming.mak.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6284
diff changeset
8 # This file contains MinGW specific settings. Common settings are contained
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6284
diff changeset
9 # in Make_cyg_ming.mak.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6284
diff changeset
10 #
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6284
diff changeset
11 # Last updated by Ken Takata.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6284
diff changeset
12 # Last Change: 2014 Oct 21
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 # uncomment 'PERL' if you want a perl-enabled version
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6284
diff changeset
16 #PERL=c:/perl
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
2320
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
18 # uncomment 'LUA' if you want a Lua-enabled version
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6284
diff changeset
19 #LUA=c:/lua
2320
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
20
14
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
21 # uncomment 'MZSCHEME' if you want a MzScheme-enabled version
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
22 #MZSCHEME=d:/plt
128
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
23
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6284
diff changeset
24 # uncomment 'PYTHON' if you want a python-enabled version
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 # Put the path to the python distro here. If cross compiling from Linux, you
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 # will also need to convert the header files to unix instead of dos format:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 # for fil in *.h ; do vim -e -c 'set ff=unix|w|q' $fil
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 # and also, you will need to make a mingw32 'libpython20.a' to link with:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 # cd $PYTHON/libs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 # pexports python20.dll > python20.def
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 # dlltool -d python20.def -l libpython20.a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 # on my Linux box, I put the Python stuff here:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 #PYTHON=/home/ron/ActivePython-2.0.0-202/src/Core
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 # on my NT box, it's here:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 #PYTHON=c:/python20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6284
diff changeset
37 # uncomment 'PYTHON3' if you want a python3-enabled version
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6284
diff changeset
38 #PYTHON3=c:/python31
2329
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
39
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6284
diff changeset
40 # uncomment 'TCL' if you want a Tcl-enabled version
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6284
diff changeset
41 #TCL=c:/tcl
2329
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
42
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6284
diff changeset
43 # uncomment 'RUBY' if you want a Ruby-enabled version
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6284
diff changeset
44 #RUBY=c:/ruby
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6284
diff changeset
47 # Do not change this.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6284
diff changeset
48 UNDER_CYGWIN = no
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6284
diff changeset
49 include Make_cyg_ming.mak
12525
626fb8e8bb8a patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents: 6326
diff changeset
50
626fb8e8bb8a patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents: 6326
diff changeset
51 # vim: set noet sw=8 ts=8 sts=0 wm=0 tw=0: