diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-04-10 06:31:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-10 06:31:10 +0800 |
commit | 7142c5dde939f6675cba4f02f616d94c1174cde2 (patch) | |
tree | 17cb0471a4cfc480f79e42e1e3b87f23bf52f6b3 /runtime/syntax/vim.vim | |
parent | efb6640b2937dacef9eec1b2ace11b85b3b44a4a (diff) | |
download | rneovim-7142c5dde939f6675cba4f02f616d94c1174cde2.tar.gz rneovim-7142c5dde939f6675cba4f02f616d94c1174cde2.tar.bz2 rneovim-7142c5dde939f6675cba4f02f616d94c1174cde2.zip |
vim-patch:e43ace558aee (#28258)
runtime(vim): Update base-syntax, no curly-brace names in Vim9 script (vim/vim#14466)
Remove curly-brace name matching for :def functions. This is not
supported in Vim9 script.
https://github.com/vim/vim/commit/e43ace558aee904f5ebb805daed763961bdbccde
Co-authored-by: dkearns <dougkearns@gmail.com>
Diffstat (limited to 'runtime/syntax/vim.vim')
-rw-r--r-- | runtime/syntax/vim.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/syntax/vim.vim b/runtime/syntax/vim.vim index e665ec8e14..f5b1071b2d 100644 --- a/runtime/syntax/vim.vim +++ b/runtime/syntax/vim.vim @@ -266,8 +266,8 @@ syn match vimEnddef "\<enddef\>" if exists("g:vimsyn_folding") && g:vimsyn_folding =~# 'f' syn region vimFuncFold start="\<fu\%[nction]\>!\=\s*\%(<[sS][iI][dD]>\|[sg]:\)\=\%(\i\|[#.]\|{.\{-1,}}\)\+\s*(" end="\<endf\%[unction]\>" contains=vimFunction fold keepend transparent - syn region vimFuncFold start="\<def\>!\=\s*\%(<[sS][iI][dD]>\|[sg]:\)\=\%(\i\|[#.]\|{.\{-1,}}\)\+(" end="\<enddef\>" contains=vimDef fold keepend transparent - syn region vimFuncFold start="\<def\s\+new\%(\i\|{.\{-1,}}\)\+(" end="\<enddef\>" contains=vimDef fold keepend transparent + syn region vimFuncFold start="\<def\>!\=\s*\%(<[sS][iI][dD]>\|[sg]:\)\=\%(\i\|[#.]\)\+(" end="\<enddef\>" contains=vimDef fold keepend transparent + syn region vimFuncFold start="\<def\s\+new\i\+(" end="\<enddef\>" contains=vimDef fold keepend transparent endif syn match vimFuncVar contained "a:\%(\K\k*\|\d\+\)\>" |