runtime(vim): Update base-syntax, match multiline return types

Commit: 
https://github.com/vim/vim/commit/dd3f1c0dda276f340d85f56ccf899b19e3e8512d
Author: Doug Kearns <dougkea...@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 <dougkea...@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 <dougkea...@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       "

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1tuGA0-00Gap3-PC%40256bit.org.

Raspunde prin e-mail lui