diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-10-12 12:58:54 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-12 12:58:54 +0100 |
commit | d987642626f84fe2f0b32a1ca5ede31b436ce677 (patch) | |
tree | 60e9980364797a13d021a5ea50e2f2d5019d843f /src/testdir | |
parent | af40f9af335e0c8b167eac31ceace45b6a2e0565 (diff) | |
download | vim-git-d987642626f84fe2f0b32a1ca5ede31b436ce677.tar.gz |
patch 9.0.0732: no check for white space before and after "=<<"v9.0.0732
Problem: No check for white space before and after "=<<". (Doug Kearns)
Solution: Check for white space in Vim9 script. (closes #11351)
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_vim9_assign.vim | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_assign.vim b/src/testdir/test_vim9_assign.vim index 3957942db..c552461aa 100644 --- a/src/testdir/test_vim9_assign.vim +++ b/src/testdir/test_vim9_assign.vim @@ -1904,6 +1904,25 @@ def Test_heredoc() STOP END v9.CheckDefAndScriptFailure(lines, 'E1012: Type mismatch; expected number but got list<string>', 1) + + lines =<< trim END + var lines=<< STOP + xxx + STOP + END + v9.CheckDefAndScriptFailure(lines, 'E1004: White space required before and after ''=<<'' at "=<< STOP"', 1) + lines =<< trim END + var lines =<<STOP + xxx + STOP + END + v9.CheckDefAndScriptFailure(lines, 'E1004: White space required before and after ''=<<'' at "=<<STOP"', 1) + lines =<< trim END + var lines=<<STOP + xxx + STOP + END + v9.CheckDefAndScriptFailure(lines, 'E1004: White space required before and after ''=<<'' at "=<<STOP"', 1) enddef def Test_var_func_call() |