0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00
Files
vim/runtime/syntax/testdir/input/vim_ex_redir.vim
Doug Kearns 57d243e27d runtime(vim): Update base syntax, fix indented Vim9 :redir highlighting
Include post operator whitespace in the Vim9 variable assignment
lookahead so that "redir =>" doesn't match as an assignment.

fixes: #18319
closes: #18323

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-09-18 19:28:18 +00:00

72 lines
878 B
VimL

" Vim :redir command
redir > filename
redir! > filename
redir > file name
redir! > file name
redir >> filename
redir! >> filename
redir >> file name
redir! >> file name
redir > filename " comment
redir > filename | echo "Foo"
redir > file name " comment
redir > file name | echo "Foo"
redir >> filename " comment
redir >> filename | echo "Foo"
redir >> file name " comment
redir >> file name | echo "Foo"
redir @a
redir @A
redir @a>
redir @A>
redir @a>>
redir @A>>
redir @*>
redir @+>
redir @*>>
redir @+>>
redir @">
redir @">>
redir => var
redir =>> var
redir END
" Issue #18319 (redir command not highlighted in some cases)
def Vim9Context()
var foo: string
if true
redir => foo
smile
redir END
endif
echo foo
command Foo {
redir => foo
echo "hello from cmd"
redir END
}
redir => foo
echom "hello global"
redir END
enddef