aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/shared.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-11-10 09:50:59 +0800
committerzeertzjq <zeertzjq@outlook.com>2024-11-10 10:03:20 +0800
commitf25ffc43a78da13719d9646e5ccb308a791278b6 (patch)
tree0f877198adcca8a6e1a3fb049f343b6c851beb3b /runtime/lua/vim/shared.lua
parent3da8f4c7ee0d3d727bd8d160874ac55d661c3607 (diff)
downloadrneovim-f25ffc43a78da13719d9646e5ccb308a791278b6.tar.gz
rneovim-f25ffc43a78da13719d9646e5ccb308a791278b6.tar.bz2
rneovim-f25ffc43a78da13719d9646e5ccb308a791278b6.zip
vim-patch:dfcef89: runtime(vim): Distinguish Vim9 constructor definitions from the :new ex command (vim/vim#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. https://github.com/vim/vim/commit/dfcef890cbdd3ec26de040b2e26d77444dc46862 Co-authored-by: Aliaksei Budavei <32549825+zzzyxwvut@users.noreply.github.com>
Diffstat (limited to 'runtime/lua/vim/shared.lua')
0 files changed, 0 insertions, 0 deletions