mirror of
https://github.com/vim/vim.git
synced 2025-10-21 08:24:06 -04:00
runtime(vim): Update base syntax, contain user command replacement text
Ensure that :command replacement text terminates at the end of the logical line. Add :command to the generator exclusion list. fixes: #18414 (@Dougaak) fixes: #18448 (Maxim Kim) closes: #18415 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
a644b7924d
commit
0977c8b03e
@@ -163,8 +163,34 @@ command -range=% -nargs=? -bang Tb :<line1>,<line2>s/\v"[^"]*"/\=substitute(subm
|
||||
|
||||
|
||||
" Unreported issue (:map with trailing bar in replacement text)
|
||||
|
||||
command! Foo
|
||||
\ map lhs rhs |
|
||||
\ abbreviate foo bar |
|
||||
\ echo "Foo"
|
||||
|
||||
|
||||
" Issue #18414 (Syntax group vimUserCmdReplacement lacking a keepend?)
|
||||
|
||||
def Vim9Context()
|
||||
command! MyFunction MyFunc()
|
||||
# I am a comment
|
||||
|
||||
command! ToggleWrap setlocal wrap!
|
||||
# I am a comment but I didn't get highlighted
|
||||
enddef
|
||||
|
||||
command! MyFunction call MyFunc()
|
||||
" I am a comment
|
||||
|
||||
command! ToggleWrap setlocal wrap!
|
||||
" I am a comment but I didn't get highlighted
|
||||
|
||||
|
||||
" Issue #18448 (comment for subsequent command is not highlighted)
|
||||
|
||||
def Vim9Context()
|
||||
command! -nargs=1 -complete=file Rg :term rg <args>
|
||||
# command! -nargs=1 -complete=file Rg :term ++shell rg <args>
|
||||
enddef
|
||||
|
||||
|
Reference in New Issue
Block a user