neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 1eb12b896e1f0f2a157f1688f08fb4e759f59dd3
parent 70d139776691f03036658e531a5af770c0181ec3
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Tue, 11 Nov 2025 09:22:00 +0800

vim-patch:e1e3474: runtime(vim): Update base syntax, fix :augroup error matching (#36512)

Only terminate the :augroup END argument at whitespace, comments and
trailing bars.

closes: vim/vim#18711

https://github.com/vim/vim/commit/e1e347475eea179e6b0bb9a91d82221ad29edc23

Co-authored-by: Doug Kearns <dougkearns@gmail.com>
Diffstat:
Mruntime/syntax/vim.vim | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/runtime/syntax/vim.vim b/runtime/syntax/vim.vim @@ -383,13 +383,13 @@ syn cluster vimAugroupList contains=@vimCmdList,vimFilter,@vimFunc,vimLineCommen " define VimFolda syn region vimAugroup - \ start="\<aug\%[roup]\>\ze\s\+\%([eE][nN][dD]\)\@!\S\+" + \ start="\<aug\%[roup]\>\ze\s\+\%([eE][nN][dD]\%($\|[[:space:]|"#]\)\)\@!\S" \ matchgroup=vimAugroupKey - \ end="\<aug\%[roup]\>\ze\s\+[eE][nN][dD]\>" + \ end="\<aug\%[roup]\ze\s\+[eE][nN][dD]\s*\%($\|[|"#]\)" \ skipwhite nextgroup=vimAugroupEnd \ contains=vimAutocmd,@vimAugroupList,vimAugroupkey if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_noaugrouperror") - syn match vimAugroupError "\<aug\%[roup]\>\s\+[eE][nN][dD]\>" + syn match vimAugroupError "\<aug\%[roup]\s\+[eE][nN][dD]\ze\s*\%($\|[|"#]\)" endif " TODO: Vim9 comment