aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/shared.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-11-10 09:56:04 +0800
committerzeertzjq <zeertzjq@outlook.com>2024-11-10 10:03:20 +0800
commite9dc9be469601362dc3e568df08ee45231107323 (patch)
tree45045f52aad978d6dd288d571ad31d17245cadf7 /runtime/lua/vim/shared.lua
parentf25ffc43a78da13719d9646e5ccb308a791278b6 (diff)
downloadrneovim-e9dc9be469601362dc3e568df08ee45231107323.tar.gz
rneovim-e9dc9be469601362dc3e568df08ee45231107323.tar.bz2
rneovim-e9dc9be469601362dc3e568df08ee45231107323.zip
vim-patch:80aabaa: runtime(vim): Distinguish Vim9 builtin object methods from namesake builtin functions (vim/vim#14348)
Currently, the overriding object method definitions are matched as vimFunctionError (:help builtin-object-methods, v9.1.0148). For example: ------------------------------------------------------------ vim9script class Test def string(): string return "Test" enddef endclass echo string(Test.new()) == Test.new().string() ------------------------------------------------------------ Instead, let's introduce a new syntax group vimMethodName and make these methods its members. In order to emphasise the link between the overriding methods and the overridden functions for highlighting, vimMethodName is linked by default to vimFuncName. https://github.com/vim/vim/commit/80aabaab6636faa7cec461acc4b1fcc3a4c89376 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