Files
vim-mirror/runtime/syntax/testdir/input/vim_commandline_window.vim
Doug Kearns 87069e378c runtime(vim): Update base syntax, improve command-line window highlighting
- Contain all matches to a single line.
- Define non-extending groups for the command-line window.
- Replace &buftype-based detection with win_gettype().

closes: #21189

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2026-08-30 19:22:10 +00:00

72 lines
830 B
VimL

" Simulated Vim command-line window
" VIM_TEST_SETUP let b:vimsyn_force_cmdline_window = v:true
" VIM_TEST_SETUP let g:vimsyn_folding = "acefhiHlmpPrtT"
" VIM_TEST_SETUP setl fdc=2 fdl=999 fdm=syntax
" simple commands
echo "..."
let x = 42
call execute(":")
" region openers
append
" comment
change
" comment
insert
" comment
let x =<< EOF
" comment
let x =<< trim EOF
" comment
let x =<< eval EOF
" comment
let x =<< trim eval EOF
" comment
augroup Foo
" comment
autocmd BufRead * {
" comment
command Foo {
" comment
function Foo()
" comment
def Foo()
let x = "...
" comment
let x = (
" comment
" Region closers
\ )
" comment
\ ..."
" comment
enddef
" comment
endfunction
" comment
}
" comment
}
" comment
augroup END
" comment
EOF
" comment
EOF
" comment
EOF
" comment
EOF
" comment
.
" comment
.
" comment
.