aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/cpp.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2026-06-01 09:04:30 +0800
committerGitHub <noreply@github.com>2026-06-01 01:04:30 +0000
commitedcaf1887ae60d78526abe73bd536af8ccfc2310 (patch)
tree977b7725685483f356f0081eb8719a0b8ec7ed3e /runtime/syntax/cpp.vim
parent71a02e261d143f3532e36b0a5be926174c86a147 (diff)
downloadrneovim-edcaf1887ae60d78526abe73bd536af8ccfc2310.tar.gz
rneovim-edcaf1887ae60d78526abe73bd536af8ccfc2310.tar.bz2
rneovim-edcaf1887ae60d78526abe73bd536af8ccfc2310.zip
vim-patch:partial:9.2.0573: Vim9: missing EX_WHOLE on some block keywords (#40071)
Problem: Several Vim9 keywords lack EX_WHOLE and can be shortened in Vim9 script, inconsistent with endif/enddef/endfor/endwhile/ endtry which already have it. The error from :endd in a nested function also hardcodes "enddef" instead of reporting what the user typed. fullcommand("ho") returns "horizontal" even though :ho is below the documented 3-char minimum. Solution: Add EX_WHOLE to :class, :def, :endclass, :endinterface, :endenum, :public and :static. In get_function_body() pass the user-typed command to the error message. Force :ho to CMD_SIZE in find_ex_command() so fullcommand() reflects the modifier minimum. Extend tests and documentation accordingly (Peter Kenny). fixes: vim/vim#20032 closes: vim/vim#20191 https://github.com/vim/vim/commit/38d9a16eba8cdf3377e8b867da805bf369454108 Co-authored-by: Peter Kenny <github.com@k1w1.cyou>
Diffstat (limited to 'runtime/syntax/cpp.vim')
0 files changed, 0 insertions, 0 deletions