forked from aniani/vim
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:
committed by
Christian Brabandt
parent
e9ae35f265
commit
60bd140256
18
runtime/syntax/testdir/input/vim9_function_calls.vim
Normal file
18
runtime/syntax/testdir/input/vim9_function_calls.vim
Normal 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
|
||||
|
Reference in New Issue
Block a user