runtime(vim): Update base-syntax, match :loadkeymap after colon and bar

Match :loadkeymap after Ex colons and bars.

Don't generate :loadkeymap as it is matched with a custom syntax group.

closes: #15554

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Doug Kearns
2024-08-23 18:37:55 +02:00
committed by Christian Brabandt
parent 5d1c551057
commit 7866d54ecc
22 changed files with 82 additions and 81 deletions

View File

@ -293,7 +293,7 @@ vim9script
:lnfile
:lNfile
:lnoremap
:loadkeymap
# :loadkeymap # disabled - runs until EOF
:loadview
:lockmarks
:lockvar
@ -880,7 +880,7 @@ Foo() | lNext
Foo() | lnfile
Foo() | lNfile
Foo() | lnoremap
Foo() | loadkeymap
# Foo() | loadkeymap # disabled - runs until EOF
Foo() | loadview
Foo() | lockmarks
Foo() | lockvar

View File

@ -1,6 +1,6 @@
vim9script
# Vim Keymap file for syntax testing
# Vim :loadkeymap command
scriptencoding utf-8

View File

@ -289,7 +289,7 @@
:lnewer
:lnfile
:lnoremap
:loadkeymap
" :loadkeymap " disabled - runs until EOF
:loadview
:lockmarks
:lockvar
@ -877,7 +877,7 @@ call Foo() | lnext
call Foo() | lnewer
call Foo() | lnfile
call Foo() | lnoremap
call Foo() | loadkeymap
" call Foo() | loadkeymap " disabled - runs until EOF
call Foo() | loadview
call Foo() | lockmarks
call Foo() | lockvar

View File

@ -1,4 +1,4 @@
" Vim Keymap file for syntax testing
" Vim :loadkeymap command
scriptencoding utf-8

View File

@ -0,0 +1,10 @@
" Vim :loadkeymap command (after "|")
scriptencoding utf-8
let b:keymap_name = "syntax-test"
echo "..." | loadkeymap
a A Basic mapping

View File

@ -0,0 +1,10 @@
" Vim :loadkeymap command (after ":")
scriptencoding utf-8
let b:keymap_name = "syntax-test"
:loadkeymap
a A Basic mapping