mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 16:36:30 +00:00
vim-patch:f4a6acd: runtime(vim): Update base syntax, allow Vim9 :echo tail comments
- Match comments after Vim9 :echo and :execute.
- Match comments after Vim9 and legacy :eval.
closes: vim/vim#18420
f4a6acd86e
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
This commit is contained in:
@@ -1272,7 +1272,7 @@ syn region vimEcho
|
|||||||
\ end="\ze|"
|
\ end="\ze|"
|
||||||
\ excludenl end="$"
|
\ excludenl end="$"
|
||||||
\ nextgroup=vimCmdSep
|
\ nextgroup=vimCmdSep
|
||||||
\ contains=@vimContinue,@vimExprList
|
\ contains=@vimContinue,@vimExprList,vim9Comment
|
||||||
\ transparent
|
\ transparent
|
||||||
|
|
||||||
syn match vimEchohl "\<echohl\=\>" skipwhite nextgroup=vimGroup,vimHLGroup,vimEchohlNone,vimOnlyHLGroup,nvimHLGroup
|
syn match vimEchohl "\<echohl\=\>" skipwhite nextgroup=vimGroup,vimHLGroup,vimEchohlNone,vimOnlyHLGroup,nvimHLGroup
|
||||||
@@ -1289,7 +1289,7 @@ syn region vimExecute
|
|||||||
\ end="\ze|"
|
\ end="\ze|"
|
||||||
\ excludenl end="$"
|
\ excludenl end="$"
|
||||||
\ nextgroup=vimCmdSep
|
\ nextgroup=vimCmdSep
|
||||||
\ contains=@vimContinue,@vimExprList
|
\ contains=@vimContinue,@vimExprList,vim9Comment
|
||||||
\ transparent
|
\ transparent
|
||||||
|
|
||||||
syn region vimEval
|
syn region vimEval
|
||||||
@@ -1299,7 +1299,7 @@ syn region vimEval
|
|||||||
\ end="\ze|"
|
\ end="\ze|"
|
||||||
\ excludenl end="$"
|
\ excludenl end="$"
|
||||||
\ nextgroup=vimCmdSep
|
\ nextgroup=vimCmdSep
|
||||||
\ contains=@vimContinue,@vimExprList
|
\ contains=@vimContinue,@vimExprList,vimComment,vim9Comment
|
||||||
\ transparent
|
\ transparent
|
||||||
|
|
||||||
" Filter: {{{2
|
" Filter: {{{2
|
||||||
|
Reference in New Issue
Block a user