runtime(vim): Update base syntax, fix :augroup error matching

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

closes: #18711

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Doug Kearns
2025-11-10 19:50:57 +00:00
committed by Christian Brabandt
parent acf928a33b
commit e1e347475e
7 changed files with 58 additions and 29 deletions

View File

@@ -41,14 +41,16 @@ augroup \"\| | autocmd! | augroup END
augroup! \"\|
" trailing bar and tail comments
augroup foo"comment
au!
au BufRead * echo "Foo"
autocmd!
autocmd BufRead * echo "Foo"
augroup END"comment
augroup foo|echo "Foo"
au!
au BufRead * echo "Foo"
autocmd!
autocmd BufRead * echo "Foo"
augroup END|echo "Foo"
augroup! foo"comment
@@ -56,7 +58,14 @@ augroup! foo|echo "Foo"
" list groups
augroup
augroup | echo "Foo"
augroup " comment
" groups named END*
augroup ending
augroup END