runtime(vim): Update base-syntax, match multiline return types
Commit:
https://github.com/vim/vim/commit/dd3f1c0dda276f340d85f56ccf899b19e3e8512d
Author: Doug Kearns <
dougk...@gmail.com>
Date: Mon Mar 17 20:27:13 2025 +0100
runtime(vim): Update base-syntax, match multiline return types
fixes
https://github.com/vim/vim/issues/14442.
closes:
https://github.com/vim/vim/issues/16914
Signed-off-by: Doug Kearns <
dougk...@gmail.com>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/runtime/syntax/generator/vim.vim.base b/runtime/syntax/generator/vim.vim.base
index eff438b94..cf732443c 100644
--- a/runtime/syntax/generator/vim.vim.base
+++ b/runtime/syntax/generator/vim.vim.base
@@ -2,7 +2,7 @@
" Language: Vim script
" Maintainer: Hirohito Higashi <h.east.727 ATMARK
gmail.com>
" Doug Kearns <
dougk...@gmail.com>
-" Last Change: 2025 Mar 13
+" Last Change: 2025 Mar 17
" Former Maintainer: Charles E. Campbell
" DO NOT CHANGE DIRECTLY.
@@ -402,8 +402,16 @@ syn match vimDef "\<def\>" skipwhite nextgroup=vimCmdSep,vimComment,vimFuncPatt
syn match vimFunction "\<fu\%[nction]\>!\=\s*\%(<[sS][iI][dD]>\|[sg]:\)\=\%(\i\|[#.]\|{.\{-1,}}\)\+" contains=@vimFuncList skipwhite nextgroup=vimFuncParams
syn match vimDef "\<def\>!\=\s*\%(<[sS][iI][dD]>\|[sg]:\)\=\%(\i\|[#.]\|{.\{-1,}}\)\+" contains=@vimDefList nextgroup=vimDefParams
-syn match vimFuncComment contained +".*+ skipwhite skipempty nextgroup=vimFuncBody,vimEndfunction
-syn match vimDefComment contained "#.*" skipwhite skipempty nextgroup=vimDefBody,vimEnddef
+syn region vimFuncComment contained
+ \ start=+".*+
+ \ skip=+
\s*\\|
\s*"\ +
+ \ end="$"
+ \ skipwhite skipempty nextgroup=vimFuncBody,vimEndfunction
+syn region vimDefComment contained
+ \ start="#.*"
+ \ skip=+
\s*\\|
\s*#\ +
+ \ end="$"
+ \ skipwhite skipempty nextgroup=vimDefBody,vimEnddef
syn match vimFuncBang contained "!"
syn match vimFuncSID contained "