diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-10-02 12:59:00 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-02 12:59:00 +0100 |
commit | eda29c971c0592d85c5856da7708f3edfdc54cfa (patch) | |
tree | f37f04d2c98fd585635f0c8e751e4827d6ff8d11 /src/testdir/test10.in | |
parent | b393275ae91eb9a8df7a9a611bd75590db9b22db (diff) |
patch 9.0.0637: syntax of commands in Vim9 script depends on +eval featurev9.0.0637
Problem: Syntax of commands in Vim9 script depends on +eval feature.
Solution: Use same syntax with and without the +eval feature.
Diffstat (limited to 'src/testdir/test10.in')
-rw-r--r-- | src/testdir/test10.in | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/testdir/test10.in b/src/testdir/test10.in new file mode 100644 index 0000000000..40f8e08075 --- /dev/null +++ b/src/testdir/test10.in @@ -0,0 +1,21 @@ +Test that vim9script also works without the +eval feature. + +STARTTEST +:/^START/+1,/^END/-1:w! Xvim9 +:so Xvim9 +ENDTEST + +START +vim9script + +if 1 + echo 'this is skipped without +eval' +endif + +# colon required for a range +:$-1,$w! test.out +qa! +END + +first line +last line |