aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/vim.vim
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-04-27 20:26:22 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-04-27 21:25:35 -0400
commite7f6c520141c104960790d9bb2e52260ba959b76 (patch)
treeca42aab8e3c440bdbbef1dc4b2244fa0b4211edf /runtime/syntax/vim.vim
parenta299f54cd7e949e93a9ddc07ec13999e6da489af (diff)
downloadrneovim-e7f6c520141c104960790d9bb2e52260ba959b76.tar.gz
rneovim-e7f6c520141c104960790d9bb2e52260ba959b76.tar.bz2
rneovim-e7f6c520141c104960790d9bb2e52260ba959b76.zip
vim-patch:b17893aa940d
Update runtime files https://github.com/vim/vim/commit/b17893aa940dc7d45421f875f5d90855880aad27 Omit feedkeys() changes.
Diffstat (limited to 'runtime/syntax/vim.vim')
-rw-r--r--runtime/syntax/vim.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/syntax/vim.vim b/runtime/syntax/vim.vim
index 07e9077d4f..bc1bf59b39 100644
--- a/runtime/syntax/vim.vim
+++ b/runtime/syntax/vim.vim
@@ -214,9 +214,9 @@ syn cluster vimFuncBodyList contains=vimAbb,vimAddress,vimAugroupKey,vimAutoCmd,
syn match vimFunction "\<fu\%[nction]!\=\s\+\%(<[sS][iI][dD]>\|[sSgGbBwWtTlL]:\)\=\%(\i\|[#.]\|{.\{-1,}}\)*\ze\s*(" contains=@vimFuncList nextgroup=vimFuncBody
if exists("g:vimsyn_folding") && g:vimsyn_folding =~# 'f'
- syn region vimFuncBody contained fold start="\ze\s*(" matchgroup=vimCommand end="\<\(endf\>\|endfu\%[nction]\>\)" contains=@vimFuncBodyList
+ syn region vimFuncBody contained fold start="\ze\s*(" matchgroup=vimCommand end="\<\(endf\>\|endfu\%[nction]\>\|enddef\>\)" contains=@vimFuncBodyList
else
- syn region vimFuncBody contained start="\ze\s*(" matchgroup=vimCommand end="\<\(endf\>\|endfu\%[nction]\>\)" contains=@vimFuncBodyList
+ syn region vimFuncBody contained start="\ze\s*(" matchgroup=vimCommand end="\<\(endf\>\|endfu\%[nction]\>\|enddef\>\)" contains=@vimFuncBodyList
endif
syn match vimFuncVar contained "a:\(\K\k*\|\d\+\)"
syn match vimFuncSID contained "\c<sid>\|\<s:"