Mercurial > vim
view .cirrus.yml @ 34374:ff92d46151ab
runtime(vim): Distinguish Vim9 constructor definitions from the :new ex command (#14050)
Commit: https://github.com/vim/vim/commit/dfcef890cbdd3ec26de040b2e26d77444dc46862
Author: Aliaksei Budavei <32549825+zzzyxwvut@users.noreply.github.com>
Date: Sun Feb 18 21:02:14 2024 +0300
runtime(vim): Distinguish Vim9 constructor definitions from the :new ex command (https://github.com/vim/vim/issues/14050)
With the arrival of Vim9 classes, the syntax must allow for
_new_ constructors; multiple constructor definitions are
supported for a class, provided distinct suffix-names are
used. Currently, the defined constructors match either
vimCommand or vimFunctionError (for any newBar).
For example:
------------------------------------------------------------
vim9script
class Foo
def new()
enddef
def newBar()
enddef
endclass
------------------------------------------------------------
Since every constructor is required to bear a lower-cased
_new_ prefix name, it should suffice to distinguish them
from functions, and so there are no new highlight or syntax
groups introduced.
Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 18 Feb 2024 19:15:02 +0100 |
parents | 4cffda5da6f4 |
children | 956a5fa10aaa |
line wrap: on
line source
env: CIRRUS_CLONE_DEPTH: 3 FEATURES: huge freebsd_task: name: FreeBSD matrix: - name: FreeBSD 14.0 freebsd_instance: image_family: freebsd-14-0 timeout_in: 20m install_script: - pkg install -y gettext build_script: - NPROC=$(getconf _NPROCESSORS_ONLN) - ./configure --with-features=${FEATURES} - make -j${NPROC} test_script: - src/vim --version # run tests as user "cirrus" instead of root - pw useradd cirrus -m - chown -R cirrus:cirrus . - sudo -u cirrus make test