0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

runtime(vim): Update base-syntax, match Vim9 function calls after "|"

Match Vim9 function calls after ex-bar.  These are also currently
matched but invalid syntax for legacy script.

fixes: #16721
closes: #16747

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Doug Kearns
2025-02-27 19:15:20 +01:00
committed by Christian Brabandt
parent e9ae35f265
commit 60bd140256
6 changed files with 70 additions and 4 deletions

View File

@@ -0,0 +1,18 @@
vim9script
# Vim9 function calls
clearmatches()
:call clearmatches()
echo "Foo" | clearmatches()
# Issue 16721 (vimscript highlight of builtin function after |)
&directory = $'{$MYVIMDIR}/.data/swap/'
&backupdir = $'{$MYVIMDIR}/.data/backup//'
&undodir = $'{$MYVIMDIR}/.data/undo//'
if !isdirectory(&undodir) | mkdir(&undodir, "p") | endif
if !isdirectory(&backupdir) | mkdir(&backupdir, "p") | endif
if !isdirectory(&directory) | mkdir(&directory, "p") | endif