Mercurial > vim
comparison src/testdir/test_vim9_cmd.vim @ 20172:1d84eaed0ec8 v8.2.0641
patch 8.2.0641: Vim9: not expanded in :hardcopy and syn-include
Commit: https://github.com/vim/vim/commit/6378c4fef37df05c99e8a43616063b4ddb692876
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 26 13:50:41 2020 +0200
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".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 26 Apr 2020 14:00:04 +0200 |
parents | 0612c64a2b87 |
children | e29b2ec8d4d2 |
comparison
equal
deleted
inserted
replaced
20171:7e3f60fb4b3f | 20172:1d84eaed0ec8 |
---|---|
1 " Test commands that are not compiled in a :def function | 1 " Test commands that are not compiled in a :def function |
2 | 2 |
3 source check.vim | |
3 source vim9.vim | 4 source vim9.vim |
4 | 5 |
5 def Test_edit_wildcards() | 6 def Test_edit_wildcards() |
6 let filename = 'Xtest' | 7 let filename = 'Xtest' |
7 edit `=filename` | 8 edit `=filename` |
17 | 18 |
18 edit X`=filename`xx`=filenr`yy | 19 edit X`=filename`xx`=filenr`yy |
19 assert_equal('XXtestxx77yy', bufname()) | 20 assert_equal('XXtestxx77yy', bufname()) |
20 enddef | 21 enddef |
21 | 22 |
23 def Test_hardcopy_wildcards() | |
24 CheckUnix | |
25 CheckFeature postscript | |
26 | |
27 let outfile = 'print' | |
28 hardcopy > X`=outfile`.ps | |
29 assert_true(filereadable('Xprint.ps')) | |
30 | |
31 delete('Xprint.ps') | |
32 enddef | |
33 | |
34 def Test_syn_include_wildcards() | |
35 writefile(['syn keyword Found found'], 'Xthemine.vim') | |
36 let save_rtp = &rtp | |
37 &rtp = '.' | |
38 | |
39 let fname = 'mine' | |
40 syn include @Group Xthe`=fname`.vim | |
41 assert_match('Found.* contained found', execute('syn list Found')) | |
42 | |
43 &rtp = save_rtp | |
44 delete('Xthemine.vim') | |
45 enddef | |
46 | |
22 | 47 |
23 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker | 48 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker |