forked from aniani/vim
patch 8.2.0641: Vim9: not expanded in :hardcopy and syn-include
Problem: Vim9: not expanded in :hardcopy and "syntax include". Solution: Add the EX_EXPAND flag. Expend "syntax include".
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
" Test commands that are not compiled in a :def function
|
||||
|
||||
source check.vim
|
||||
source vim9.vim
|
||||
|
||||
def Test_edit_wildcards()
|
||||
@@ -19,5 +20,29 @@ def Test_edit_wildcards()
|
||||
assert_equal('XXtestxx77yy', bufname())
|
||||
enddef
|
||||
|
||||
def Test_hardcopy_wildcards()
|
||||
CheckUnix
|
||||
CheckFeature postscript
|
||||
|
||||
let outfile = 'print'
|
||||
hardcopy > X`=outfile`.ps
|
||||
assert_true(filereadable('Xprint.ps'))
|
||||
|
||||
delete('Xprint.ps')
|
||||
enddef
|
||||
|
||||
def Test_syn_include_wildcards()
|
||||
writefile(['syn keyword Found found'], 'Xthemine.vim')
|
||||
let save_rtp = &rtp
|
||||
&rtp = '.'
|
||||
|
||||
let fname = 'mine'
|
||||
syn include @Group Xthe`=fname`.vim
|
||||
assert_match('Found.* contained found', execute('syn list Found'))
|
||||
|
||||
&rtp = save_rtp
|
||||
delete('Xthemine.vim')
|
||||
enddef
|
||||
|
||||
|
||||
" vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker
|
||||
|
||||
Reference in New Issue
Block a user